1 taxonomy_test.module taxonomy_test_taxonomy_term_delete(TaxonomyTerm $term)

Implements hook_taxonomy_term_delete().

File

core/modules/simpletest/tests/taxonomy_test.module, line 52
Test module for Taxonomy hooks and functions not used in core.

Code

function taxonomy_test_taxonomy_term_delete(TaxonomyTerm $term) {
  db_delete('taxonomy_term_antonym')
    ->condition('tid', $term->tid)
    ->execute();
}