taxonomy_helper_node_taxonomy

custom/taxonomy_helper/taxonomy_helper_node/taxonomy_helper_node.module, line 83

Versions
6
taxonomy_helper_node_taxonomy($op, $type, $object = NULL)

Implementation of hook_taxonomy().

Cleanup variables when a vocabulary is being deleted.

Code

<?php
function taxonomy_helper_node_taxonomy($op, $type, $object = NULL) {
  if ($type == 'vocabulary' && $op == 'delete') {
    variable_del('taxonomy_helper_node_'. $object['vid'] .'_teaser_display');
    variable_del('taxonomy_helper_node_'. $object['vid'] .'_teaser_terms');
    variable_del('taxonomy_helper_node_'. $object['vid'] .'_page_display');
    variable_del('taxonomy_helper_node_'. $object['vid'] .'_page_terms');
  }
}
?>