Skip navigation
Help

template_preprocess_menu_tree

7 menu.inc template_preprocess_menu_tree(&$variables)

Preprocesses the rendered tree for theme_menu_tree().

Related topics

File

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

Code

function template_preprocess_menu_tree(&$variables) {
  $variables['tree'] = $variables['tree']['#children'];
}