UCP module with drawselects?

We have a customer looking to manage the forwarding for their extension. They want to be able to forward not just to external DIDs and extensions, but also to an IVR or time condition. I know I can make up a bunch of feature codes pointing to various destinations, but I thought I’d try my hand at coming up with a UCP module.

I’ve hit a stumbling block trying to get the destination select boxes working. They draw ok, but are red and angry, and complain about a “Bad Dest.” Is there any way to get something like this working?

public function getDisplay() {
    $html = "";
    $sel = new \gui_drawselects("dest", 0, $settings["dest"]);
    $html .= $sel->generatehtml();
    return $html;