template_preprocess_menu_tree

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 template_preprocess_menu_tree(&$variables)

Preprocesses the rendered tree for theme_menu_tree().

Related topics

Code

includes/menu.inc, line 1573

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