| Versionen | |
|---|---|
| drupal6 – drupal7 | trigger_taxonomy($op, $type, $array) |
Implementation of hook_taxonomy().
modules/
<?php
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);
}
}
?>
Kommentare
Kommentar hinzufügen