You are here

function nodehierarchy_get_descendant_list in Node Hierarchy 6

Same name and namespace in other branches
  1. 5 nodehierarchy.module \nodehierarchy_get_descendant_list()

Get the descendant tree for the given node.

1 call to nodehierarchy_get_descendant_list()
nodehierarchy_insert_node in ./nodehierarchy.module
Insert or update a node. Set it's parent

File

./nodehierarchy.module, line 856

Code

function nodehierarchy_get_descendant_list($nid) {
  $out = array();
  $children = nodehierarchy_get_children($nid);
  $out = $children;
  foreach ($children as $child) {
    $out = array_merge($out, nodehierarchy_get_descendant_list($child));
  }
  return $out;
}