I am trying to return dynamic select options for a webform component. I have it working to return node titles, but I need to instead return values from a manually created table in the db that is not drupal related. How would I alter this function to achieve that?
function _MY_MODULE_get_rate_options() {
$nodes = array();
$select = db_query("MY DB QUERY HERE");
foreach ($select as $node) {
$nodes[$node->nid] = $node->title;
}
return $nodes;
}