function taxonomy_taxonomy_term_delete
7.x taxonomy.module | taxonomy_taxonomy_term_delete($term) |
Implements hook_taxonomy_term_delete().
Related topics
File
- drupal-7.x/
modules/ taxonomy/ taxonomy.module, line 2007 - Enables the organization of content into categories.
Code
function taxonomy_taxonomy_term_delete($term) {
if (variable_get('taxonomy_maintain_index_table', TRUE)) {
// Clean up the {taxonomy_index} table when terms are deleted.
db_delete('taxonomy_index')->condition('tid', $term->tid)->execute();
}
}