You are here

function taxonomy_edge_taxonomy_vocabulary_insert in Taxonomy Edge 6

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

Implements hook_taxonomy_vocabulary_insert().

2 calls to taxonomy_edge_taxonomy_vocabulary_insert()
taxonomy_edge_rebuild_edges in ./taxonomy_edge.rebuild.inc
Rebuild entire edge list.
taxonomy_edge_taxonomy in ./taxonomy_edge.module
Implementation of hook_taxonomy().

File

./taxonomy_edge.module, line 179
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_insert($vocabulary) {
  taxonomy_edge_taxonomy_vocabulary_delete($vocabulary);
  db_query("INSERT INTO {term_edge} (vid) VALUES(%d)", $vocabulary->vid);
}