You are here

function nodequeue_reference_options_list in Nodequeue reference 7

Implements hook_options_list().

File

./nodequeue_reference.module, line 330
Form field type for node queues.

Code

function nodequeue_reference_options_list($field, $instance, $entity_type, $entity) {
  $result = db_query("SELECT qid, title FROM {nodequeue_queue} ORDER BY title");
  $options = array();
  foreach ($result as $queue) {
    $options[$queue->qid] = $queue->title;
  }
  return $options;
}