When adding a taxonomy term in Drupal, it redirects back to itself to add another term. Is there a way of overriding this?
I have so far tried:
• Adding ?destination=_ to the page that links to the /add/term/ page
• Tried hook_taxonomy:
function modulename_taxonomy($op, $type, $array = NULL) {
if ($type == 'term' && ($op == 'insert' || $op == 'update') && $array['parent'][39] == 39) {
drupal_goto('page.html');
}
}
If instead of drupal_goto()
I put die('Here');
it outputs, but the drupal_goto()
does not work?