Same name and namespace in other branches
  1. 4.7.x includes/menu.inc \theme_menu_tree()
  2. 5.x includes/menu.inc \theme_menu_tree()
  3. 6.x includes/menu.inc \theme_menu_tree()
  4. 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

1 theme call to theme_menu_tree()
menu_tree in includes/menu.inc
Returns a rendered menu tree.

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";
  }
}