You are here

public static function RulesDataUITaxonomyVocabulary::optionsList in Rules 7.2

Implements RulesDataInputOptionsListInterface::optionsList().

Overrides RulesDataInputOptionsListInterface::optionsList

File

ui/ui.data.inc, line 669
Contains data type related forms.

Class

RulesDataUITaxonomyVocabulary
UI for taxonomy vocabularies.

Code

public static function optionsList(RulesPlugin $element, $name) {
  $options = array();
  foreach (taxonomy_vocabulary_get_names() as $machine_name => $vocab) {
    $options[$machine_name] = $vocab->name;
  }
  return $options;
}