| Versions | |
|---|---|
| 4.7 – 5 | theme_menu_tree( |
| 6 | theme_menu_tree( |
| 7 | theme_menu_tree($variables) |
Generate the HTML for a menu tree.
$pid The parent id of the menu.
includes/
<?php
function theme_menu_tree($pid = 1) {
if ($tree = menu_tree($pid)) {
return "\n<ul class=\"menu\">\n" . $tree . "\n</ul>\n";
}
}
?>