function hook_taxonomy_term_delete

7.x taxonomy.api.php hook_taxonomy_term_delete($term)

Respond to the deletion of taxonomy terms.

Modules implementing this hook can respond to the deletion of taxonomy terms from the database.

Parameters

$term: A taxonomy term object.

Related topics

1 call to hook_taxonomy_term_delete()
hook_taxonomy_term_update in drupal/modules/taxonomy/taxonomy.api.php
Act on taxonomy terms when updated.
6 functions implement hook_taxonomy_term_delete()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

entity_crud_hook_test_taxonomy_term_delete in drupal/modules/simpletest/tests/entity_crud_hook_test.module
Implements hook_taxonomy_term_delete().
forum_taxonomy_term_delete in drupal/modules/forum/forum.module
Implements hook_taxonomy_term_delete().
path_taxonomy_term_delete in drupal/modules/path/path.module
Implements hook_taxonomy_term_delete().
taxonomy_taxonomy_term_delete in drupal/modules/taxonomy/taxonomy.module
Implements hook_taxonomy_term_delete().
taxonomy_test_taxonomy_term_delete in drupal/modules/simpletest/tests/taxonomy_test.module
Implements hook_taxonomy_term_delete().

... See full list

1 invocation of hook_taxonomy_term_delete()
taxonomy_term_delete in drupal/modules/taxonomy/taxonomy.module
Delete a term.

File

drupal/modules/taxonomy/taxonomy.api.php, line 180
Hooks provided by the Taxonomy module.

Code

function hook_taxonomy_term_delete($term) {
  db_delete('term_synoynm')->condition('tid', $term->tid)->execute();
}