_menu_set_expanded_menus

  1. drupal
    1. 6
    2. 8
    3. 7
Versions
6 – 8 _menu_set_expanded_menus()

Helper function to update a list of menus with expanded items

Related topics

▾ 1 function calls _menu_set_expanded_menus()

_menu_clear_page_cache in includes/menu.inc
Helper function to clear the page and block caches at most twice per page load.

Code

includes/menu.inc, line 3263

<?php
function _menu_set_expanded_menus() {
  $names = db_query("SELECT menu_name FROM {menu_links} WHERE expanded <> 0 GROUP BY menu_name")->fetchCol();
  variable_set('menu_expanded', $names);
}
?>