You are here

function tvi_taxonomy_term_delete in Taxonomy Views Integrator 7

Same name and namespace in other branches
  1. 8 tvi.module \tvi_taxonomy_term_delete()

Implements hook_taxonomy_term_delete().

Remove TVI settings when terms are deleted.

File

./tvi.module, line 150
Allow to define views to be used instead of default drupal behavior on taxonomy terms pages.

Code

function tvi_taxonomy_term_delete($term) {
  tvi_include('query');
  tvi_remove_settings($term->tid, TVI_TYPE_TERM);
}