You are here

function taxonomy_edge_taxonomy_vocabulary_insert in Taxonomy Edge 7

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

Implements hook_taxonomy_vocabulary_insert().

1 call to taxonomy_edge_taxonomy_vocabulary_insert()
taxonomy_edge_rebuild_edges in ./taxonomy_edge.rebuild.inc
Rebuild entire edge list.

File

./taxonomy_edge.module, line 226
Optimization of taxonomy data model for SQL performance.

Code

function taxonomy_edge_taxonomy_vocabulary_insert($vocabulary) {
  taxonomy_edge_taxonomy_vocabulary_delete($vocabulary);
  db_insert('taxonomy_term_edge')
    ->fields(array(
    'vid' => $vocabulary->vid,
  ))
    ->execute();
}