You are here

function _taxonomy_edge_detach_subtree in Taxonomy Edge 8

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

Detach children from parents in $tids (delete ancestors)

1 call to _taxonomy_edge_detach_subtree()
_taxonomy_edge_move_subtree in ./taxonomy_edge.module
Detach path and children from current parent and attach to new parents

File

./taxonomy_edge.module, line 484
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_detach_subtree($vid, $tids) {
  return _taxonomy_edge_delete_subtree($vid, $tids, 1);
}