function hook_taxonomy_term_delete
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
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-7.x/
modules/ simpletest/ tests/ entity_crud_hook_test.module - Implements hook_taxonomy_term_delete().
- forum_taxonomy_term_delete in drupal-7.x/
modules/ forum/ forum.module - Implements hook_taxonomy_term_delete().
- path_taxonomy_term_delete in drupal-7.x/
modules/ path/ path.module - Implements hook_taxonomy_term_delete().
- taxonomy_taxonomy_term_delete in drupal-7.x/
modules/ taxonomy/ taxonomy.module - Implements hook_taxonomy_term_delete().
- taxonomy_test_taxonomy_term_delete in drupal-7.x/
modules/ simpletest/ tests/ taxonomy_test.module - Implements hook_taxonomy_term_delete().
1 invocation of hook_taxonomy_term_delete()
- taxonomy_term_delete in drupal-7.x/
modules/ taxonomy/ taxonomy.module - Delete a term.
Archivo
- drupal-7.x/
modules/ taxonomy/ taxonomy.api.php, line 171 - Hooks provided by the Taxonomy module.
Código
function hook_taxonomy_term_delete($term) {
db_delete('mytable')->condition('tid', $term->tid)->execute();
}