function theme_menu_tree

7.x theme_menu_tree($variables)
5.x theme_menu_tree($pid = 1)
6.x theme_menu_tree($tree)
8.x theme_menu_tree($variables)

Returns HTML for a wrapper for a menu sub-tree.


$variables: An associative array containing:

  • tree: An HTML string containing the tree's items.

See also


Related topics

4 string references to the theme hook from theme_menu_tree()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

drupal_common_theme in drupal/includes/
Provides theme registration for themes across .inc files.
MenuTreeOutputTestCase::testMenuTreeData in drupal/modules/simpletest/tests/menu.test
Validate the generation of a proper menu tree output.
menu_reset_static_cache in drupal/includes/
Resets the menu system static cache.
menu_tree_output in drupal/includes/
Returns an output structure for rendering a menu tree.


drupal/includes/, line 1622
API for the Drupal menu system.


function theme_menu_tree($variables) {
  return '<ul class="menu">' . $variables['tree'] . '</ul>';