hook_taxonomy_vocabulary_delete

Versions
7
hook_taxonomy_vocabulary_delete($vocabulary)

Respond to the deletion of taxonomy vocabularies.

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

Parameters

$vocabulary A taxonomy vocabulary object.

Related topics

Code

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

<?php
function hook_taxonomy_vocabulary_delete($vocabulary) {
  if (variable_get('taxonomy_' . $vocabulary->vid . '_synonyms', FALSE)) {
    variable_del('taxonomy_' . $vocabulary->vid . '_synonyms');
  }
}
?>
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.