class RulesDataUITaxonomyVocabulary in Rules 7.2
UI for taxonomy vocabularies.
Hierarchy
- class \RulesDataUI
- class \RulesDataUIText implements RulesDataDirectInputFormInterface
- class \RulesDataUIEntity
- class \RulesDataUITaxonomyVocabulary implements RulesDataInputOptionsListInterface
- class \RulesDataUIEntity
- class \RulesDataUIText implements RulesDataDirectInputFormInterface
Expanded class hierarchy of RulesDataUITaxonomyVocabulary
See also
RulesTaxonomyVocabularyWrapper
1 string reference to 'RulesDataUITaxonomyVocabulary'
- rules_rules_core_data_info in modules/
rules_core.rules.inc - Implements hook_rules_data_info() on behalf of the pseudo rules_core module.
File
- ui/
ui.data.inc, line 657 - Contains data type related forms.
View source
class RulesDataUITaxonomyVocabulary extends RulesDataUIEntity implements RulesDataInputOptionsListInterface {
/**
* Overrides RulesDataUI::getDefaultMode().
*/
public static function getDefaultMode() {
return 'input';
}
/**
* Implements RulesDataInputOptionsListInterface::optionsList().
*/
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;
}
}