function tvi_taxonomy in Taxonomy Views Integrator 6
Implements hook_taxonomy().
See also
http://api.drupal.org/api/function/hook_taxonomy/6
File
- ./
tvi.module, line 114 - Enables use of views for taxonomy pages.
Code
function tvi_taxonomy($op, $type, $info = NULL) {
switch ($op) {
// Remove TVI settings when vocabularies and terms are deleted.
case 'delete':
$type = $type == 'vocabulary' ? TVI_TYPE_VOCAB : TVI_TYPE_TERM;
$xid = $type == TVI_TYPE_VOCAB ? $info['vid'] : $info['tid'];
tvi_include('query');
tvi_remove_settings($xid, $type);
break;
}
}