theme_menu_tree

Versions
4.6 – 5
theme_menu_tree($pid = 1)
6
theme_menu_tree($tree)
7
theme_menu_tree($variables)

Generate the HTML for a menu tree.

Parameters

$pid The parent id of the menu.

Related topics

Code

includes/menu.inc, line 646

<?php
function theme_menu_tree($pid = 1) {
  if ($tree = menu_tree($pid)) {
    return "\n<ul class=\"menu\">\n". $tree ."\n</ul>\n";
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.