hook_taxonomy_term_delete

Versions
7
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

Code

modules/taxonomy/taxonomy.api.php, line 152

<?php
function hook_taxonomy_term_delete($term) {
  db_delete('term_synoynm')->condition('tid', $term->tid)->execute();
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.