Drupal 6 - execute code after taxonomy term delete -
as title says, how can execute code after taxonomy term deleted. drupal 7 has hook_taxonomy_term_delete, function not available 6. know work around?
the corresponding hook in d6 called hook_taxonomy
.
it called thusly: hook_taxonomy($op, $type, $array = null)
where:
$op
1 of'delete'
,'insert'
,'update'
$type
1 of'vocabulary'
,'term'
,- and
$array
thing$op
being done to.
so in case example implementation of hook go this:
function example_taxonomy($op, $type, $array = null) { if ('term' == $type && 'delete' == $op) { // execute code here } }
Comments
Post a Comment