Same name and namespace in other branches
- 4.7.x includes/menu.inc \theme_menu_tree()
- 5.x includes/menu.inc \theme_menu_tree()
- 6.x includes/menu.inc \theme_menu_tree()
- 7.x includes/menu.inc \theme_menu_tree()
Generate the HTML for a menu tree.
Parameters
$pid: The parent id of the menu.
Related topics
File
- includes/
menu.inc, line 555 - API for the Drupal menu system.
Code
function theme_menu_tree($pid = 1) {
if ($tree = menu_tree($pid)) {
return "\n<ul>\n" . $tree . "\n</ul>\n";
}
}