Implements hook_taxonomy_term_delete().

File

modules/forum/forum.module, line 476
Provides discussion forums.

Code

function forum_taxonomy_term_delete($term) {

  // For containers, remove the tid from the forum_containers variable.
  $containers = variable_get('forum_containers', array());
  $key = array_search($term->tid, $containers);
  if ($key !== FALSE) {
    unset($containers[$key]);
  }
  variable_set('forum_containers', $containers);
}