function forum_taxonomy_term_delete
7.x forum.module | forum_taxonomy_term_delete($term) |
Implements hook_taxonomy_term_delete().
File
- drupal-7.x/
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);
}