function menu_tree


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 menu_tree($menu_name)
cle7 menu_tree($menu_name)
elmsmedia7 menu_tree($menu_name)
icor7 menu_tree($menu_name)
meedjum_blog7 menu_tree($menu_name)
mooc7 menu_tree($menu_name)

Renders a menu tree based on the current path.

The tree is expanded based on the current path and dynamic paths are also changed according to the defined to_arg functions (for example the 'My account' link is changed from user/% to a link with the current user's uid).


$menu_name: The name of the menu.

Return value

A structured array representing the specified menu on the current page, to be rendered by drupal_render().

Related topics

4 calls to menu_tree()
menu_block_view in modules/menu/menu.module
Implements hook_block_view().
page.tpl.php in sites/all/themes/ulmus/skeletontheme/templates/page.tpl.php
shortcut_renderable_links in modules/shortcut/shortcut.module
Returns an array of shortcut links, suitable for rendering.
system_block_view in modules/system/system.module
Implements hook_block_view().
2 string references to 'menu_tree'
drupal_common_theme in includes/
Provides theme registration for themes across .inc files.
menu_reset_static_cache in includes/
Resets the menu system static cache.


includes/, line 992
API for the Drupal menu system.


function menu_tree($menu_name) {
  $menu_output = &drupal_static(__FUNCTION__, array());

  if (!isset($menu_output[$menu_name])) {
    $tree = menu_tree_page_data($menu_name);
    $menu_output[$menu_name] = menu_tree_output($tree);
  return $menu_output[$menu_name];



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.