Skip to content
Snippets Groups Projects
Commit 4004b9f1 authored by Stefan Ruijsenaars's avatar Stefan Ruijsenaars
Browse files

Issue #767404 by das-peter, geru, Ketan Harit, nikhilsukul, Nitesh Sethia:...

Issue #767404 by das-peter, geru, Ketan Harit, nikhilsukul, Nitesh Sethia: theme_menu_tree() removes helpful data for theming custom menu trees
parent cfe9983a
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ Drupal 7.54, xxxx-xx-xx (development version)
- Modules are now able to define theme engines.
- Numerous bug fixes.
- Logging of searches can now be disabled.
- Added menu tree render structure to (pre-)process hooks for theme_menu_tree().
Drupal 7.53, 2016-12-07
-----------------------
......
......@@ -1606,6 +1606,7 @@ function _menu_tree_data(&$links, $parents, $depth) {
* Implements template_preprocess_HOOK() for theme_menu_tree().
*/
function template_preprocess_menu_tree(&$variables) {
$variables['#tree'] = $variables['tree'];
$variables['tree'] = $variables['tree']['#children'];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment