1 menu.inc _menu_set_expanded_menus()

Updates a list of menus with expanded items.

Related topics

File

core/includes/menu.inc, line 3535
API for the Backdrop 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();
  state_set('menus_containing_expanded_items', $names);
}