You are here

function trigger_taxonomy in Drupal 6

Implementation of hook_taxonomy().

File

modules/trigger/trigger.module, line 390
Enables functions to be stored and executed at a later time when triggered by other modules or by one of Drupal's core API hooks.

Code

function trigger_taxonomy($op, $type, $array) {
  if ($type != 'term') {
    return;
  }
  $aids = _trigger_get_hook_aids('taxonomy', $op);
  $context = array(
    'hook' => 'taxonomy',
    'op' => $op,
  );
  foreach ($aids as $aid => $action_info) {
    $taxonomy_object = (object) $array;
    actions_do($aid, $taxonomy_object, $context);
  }
}