function menu_tree_data
7.x menu.inc | menu_tree_data(array |
6.x menu.inc | menu_tree_data($result = NULL, $parents = array(), $depth = 1) |
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.
Related topics
4 calls to menu_tree_data()
- book_menu_subtree_data in drupal-6.x/
modules/ book/ book.module - Get the data representing a subtree of the book hierarchy.
- menu_overview_form in drupal-6.x/
modules/ menu/ menu.admin.inc - Form for editing an entire menu tree at once.
- menu_tree_all_data in drupal-6.x/
includes/ menu.inc - Get the data structure representing a named menu tree.
- menu_tree_page_data in drupal-6.x/
includes/ menu.inc - Get the data structure representing a named menu tree, based on the current page.
File
- drupal-6.x/
includes/ menu.inc, line 1057 - API for the Drupal menu system.
Code
function menu_tree_data($result = NULL, $parents = array(), $depth = 1) {
list(, $tree) = _menu_tree_data($result, $parents, $depth);
return $tree;
}