function hook_taxonomy_vocabulary_delete

7.x taxonomy.api.php 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.


$vocabulary: A taxonomy vocabulary object.

Related topics

1 function implements hook_taxonomy_vocabulary_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_vocabulary_delete in drupal/modules/simpletest/tests/entity_crud_hook_test.module
Implements hook_taxonomy_vocabulary_delete().
1 invocation of hook_taxonomy_vocabulary_delete()
taxonomy_vocabulary_delete in drupal/modules/taxonomy/taxonomy.module
Delete a vocabulary.


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


function hook_taxonomy_vocabulary_delete($vocabulary) {
  if (variable_get('taxonomy_' . $vocabulary->vid . '_synonyms', FALSE)) {
    variable_del('taxonomy_' . $vocabulary->vid . '_synonyms');