function RulesDataUITaxonomyVocabulary::optionsList

Implements RulesDataInputOptionsListInterface::optionsList().

Overrides RulesDataInputOptionsListInterface::optionsList

File

ui/ui.data.inc, line 669

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;
}