Skip navigation
Help

_menu_set_expanded_menus

6 menu.inc _menu_set_expanded_menus()
7 menu.inc _menu_set_expanded_menus()

Helper function to update a list of menus with expanded items

Related topics

1 call to _menu_set_expanded_menus()

1 string reference to '_menu_set_expanded_menus'

File

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

Code

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);
}