function nodehierarchy_tree_data in Node Hierarchy 6.3
Same name and namespace in other branches
- 6.2 nodehierarchy.module \nodehierarchy_tree_data()
- 7.2 nodehierarchy.module \nodehierarchy_tree_data()
Build the data representing a menu tree.
Parameters
$result: The database result.
$parents: An array of the plid values that represent the path from the current page to the root of the menu tree.
$depth: The depth of the current menu tree.
Return value
See menu_tree_page_data for a description of the data structure.
2 calls to nodehierarchy_tree_data()
- _nodehierarchy_parent_options in ./
nodehierarchy.module - Return a list of menu items that are valid possible parents for the given node.
- _nodehierarchy_widgets_parent_autocomplete_options in nodehierarchy_widgets/
nodehierarchy_widgets.module - Return a list of menu items that are valid possible parents for the given node.
File
- ./
nodehierarchy.module, line 1734 - A module to make nodes hierarchical.
Code
function nodehierarchy_tree_data($result = NULL, $exclude = NULL, $allowed_types, $depth = 1) {
list(, $tree) = _nodehierarchy_tree_data($result, $exclude, $allowed_types, $depth);
return $tree;
}