1 system.menu.inc system_menu_block_defaults($menu_name)

The default menu block configuration.

Return value

array:

File

core/modules/system/system.menu.inc, line 22
Menu block configuration form and display.

Code

function system_menu_block_defaults($menu_name) {
  $defaults = array(
    'level' => 1,
    'menu_name' => $menu_name,
    'style' => NULL,
    'expand_all' => FALSE,
    'clickdown' => FALSE,
    'collapse' => 'default',
    'toggle_text' => 'Menu',
  );
  if ($menu_name == 'main-menu') {
    $defaults['depth'] = 1;
    $defaults['toggle'] = TRUE;
  }
  else {
    $defaults['depth'] = 0;
    $defaults['toggle'] = FALSE;
  }
  return $defaults;
}