1 taxonomy.module taxonomy_taxonomy_term_delete(TaxonomyTerm $term)

Implements hook_taxonomy_term_delete().

Related topics

File

core/modules/taxonomy/taxonomy.module, line 2099
Enables the organization of content into categories.

Code

function taxonomy_taxonomy_term_delete(TaxonomyTerm $term) {
  if (config_get('taxonomy.settings', 'maintain_index_table')) {
    // Clean up the {taxonomy_index} table when terms are deleted.
    db_delete('taxonomy_index')->condition('tid', $term->tid)->execute();
  }
}