You are here

function rules_action_taxonomy_load_vocab in Rules 6

Action: Load a vocabulary.

Related topics

File

rules/modules/taxonomy.rules.inc, line 212
Rules integration for the taxonomy module.

Code

function rules_action_taxonomy_load_vocab($settings) {
  $vid = !empty($settings['vocabulary']['vocab_text']) ? $settings['vocabulary']['vocab_text'] : $settings['vocabulary']['vocab_select'];
  return array(
    'taxonomy_vocab' => taxonomy_vocabulary_load($vid),
  );
}