You are here

function rules_taxonomy in Rules 6

Implementation of hook_taxonomy().

Related topics

File

rules/modules/rules.events.inc, line 89
Invokes events for supported modules. Usually this should be directly in the module providing rules integration instead.

Code

function rules_taxonomy($op, $type, $array) {
  if ($type == 'term' && in_array($op, array(
    'insert',
    'update',
  ))) {
    $taxonomy_object = (object) $array;
    rules_invoke_event('taxonomy_term_' . $op, $taxonomy_object);
  }
}