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:
$op1 of'delete','insert','update'$type1 of'vocabulary','term',- and
$arraything$opbeing 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