You are here

function taxonomy_edge_taxonomy_vocabulary_delete in Taxonomy Edge 8

Same name and namespace in other branches
  1. 6 taxonomy_edge.module \taxonomy_edge_taxonomy_vocabulary_delete()
  2. 7 taxonomy_edge.module \taxonomy_edge_taxonomy_vocabulary_delete()

Implements hook_taxonomy_vocabulary_delete().

1 call to taxonomy_edge_taxonomy_vocabulary_delete()
taxonomy_edge_taxonomy_vocabulary_insert in ./taxonomy_edge.module
Implements hook_taxonomy_vocabulary_insert().

File

./taxonomy_edge.module, line 219
Selecting all children of a given taxonomy term can be a pain. This module makes it easier to do this, by maintaining a complete list of edges for each term using the adjecency matrix graph theory.

Code

function taxonomy_edge_taxonomy_vocabulary_delete($vocabulary) {
  db_delete('taxonomy_term_edge')
    ->condition('vid', $vocabulary->vid)
    ->execute();
}