You are here

function taxonomy_edge_invalidate_order in Taxonomy Edge 7.2

Same name and namespace in other branches
  1. 8 taxonomy_edge.module \taxonomy_edge_invalidate_order()
  2. 6 taxonomy_edge.module \taxonomy_edge_invalidate_order()
  3. 7 taxonomy_edge.module \taxonomy_edge_invalidate_order()
3 calls to taxonomy_edge_invalidate_order()
taxonomy_edge_rebuild_edges in ./taxonomy_edge.rebuild.inc
Rebuild entire edge list.
_taxonomy_edge_taxonomy_term_insert in ./taxonomy_edge.module
Insert a term into the edge tree.
_taxonomy_edge_taxonomy_term_update in ./taxonomy_edge.module
Update a term in the edge tree.

File

./taxonomy_edge.module, line 816
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_invalidate_order($vid) {
  db_merge('taxonomy_term_edge_order')
    ->key(array(
    'oid' => -$vid,
  ))
    ->fields(array(
    'vid' => $vid,
  ))
    ->execute();
}