function taxonomy_edge_taxonomy_term_insert in Taxonomy Edge 8
Same name and namespace in other branches
- 6 taxonomy_edge.module \taxonomy_edge_taxonomy_term_insert()
- 7.2 taxonomy_edge.module \taxonomy_edge_taxonomy_term_insert()
- 7 taxonomy_edge.module \taxonomy_edge_taxonomy_term_insert()
Implements hook_taxonomy_term_insert().
File
- ./
taxonomy_edge.module, line 228 - 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_term_insert($term) {
if (taxonomy_edge_is_build_realtime($term->vid)) {
return _taxonomy_edge_taxonomy_term_insert($term);
}
else {
_taxonomy_edge_taxonomy_term_queue($term, 'insert');
}
}