theme_menu_tree
Definition
theme_menu_tree($pid = 1)
includes/menu.inc, line 646
Description
Generate the HTML for a menu tree.
Parameters
$pid The parent id of the menu.
Related topics
| Name | Description |
|---|---|
| Menu system | Define the navigation menus, and route page requests to code based on URLs. |
| Themeable functions | Functions that display HTML, and which can be customized by themes. |
Code
<?php
function theme_menu_tree($pid = 1) {
if ($tree = menu_tree($pid)) {
return "\n<ul class=\"menu\">\n". $tree ."\n</ul>\n";
}
}
?> 