function taxonomy_taxonomy_term_delete
Same name in other branches
- 9 core/modules/taxonomy/taxonomy.module \taxonomy_taxonomy_term_delete()
- 8.9.x core/modules/taxonomy/taxonomy.module \taxonomy_taxonomy_term_delete()
- 10 core/modules/taxonomy/taxonomy.module \taxonomy_taxonomy_term_delete()
- 11.x core/modules/taxonomy/taxonomy.module \taxonomy_taxonomy_term_delete()
Implements hook_taxonomy_term_delete().
Related topics
File
-
modules/
taxonomy/ taxonomy.module, line 2022
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();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.