You are here

function rules_action_taxonomy_load_term in Rules 6

Action: Load a term.

Related topics

File

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

Code

function rules_action_taxonomy_load_term($settings) {
  if ($term = taxonomy_get_term(!empty($settings['term']['term_text']) ? $settings['term']['term_text'] : $settings['term']['term_select'])) {
    return array(
      'taxonomy_term' => $term,
    );
  }
}