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

Namesort iconDescription
Menu systemDefine the navigation menus, and route page requests to code based on URLs.
Themeable functionsFunctions 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";
  }
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.