function theme_menu_tree

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

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

Parameters

$variables: An associative array containing:

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

See also

template_preprocess_menu_tree()

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/common.inc
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/menu.inc
Resets the menu system static cache.
menu_tree_output in drupal/includes/menu.inc
Returns an output structure for rendering a menu tree.

File

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

Code

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