You are here

function Notifications_Taxonomy_Vocabulary_Field::select_options in Notifications 7

List of options

Overrides Notifications_Field_Select::select_options

File

notifications_tags/notifications_tags.inc, line 187
Drupal Notifications Framework - Default class file

Class

Notifications_Taxonomy_Vocabulary_Field
Taxonomy term field

Code

function select_options() {
  if (!isset($this->vocabulary_names)) {

    //foreach (taxonomy_get_vocabularies() as $vocab) {
    $this->vocabulary_names = db_query('SELECT vid, name FROM {taxonomy_vocabulary}')
      ->fetchAllKeyed();
  }
  return $this->vocabulary_names;
}