menu_configure()Menu callback; Build the form presenting menu configuration options.
modules/menu/menu.admin.inc, line 651
<?php
function menu_configure() {
$form['intro'] = array(
'#type' => 'item',
'#markup' => t('The menu module allows on-the-fly creation of menu links in the content authoring forms. The following option sets the default menu in which a new link will be added.'),
);
$menu_options = menu_get_menus();
$main = variable_get('menu_main_links_source', 'main-menu');
$main_options = array_merge($menu_options, array('' => t('No Main links')));
$form['menu_main_links_source'] = array(
'#type' => 'select',
'#title' => t('Source for the Main links'),
'#default_value' => 'main-menu',
'#options' => $main_options,
'#tree' => FALSE,
'#description' => t('Select what should be displayed as the Main links (typically at the top of the page).'),
);
$secondary_options = array_merge($menu_options, array('' => t('No Secondary links')));
$form['menu_secondary_links_source'] = array(
'#type' => 'select',
'#title' => t('Source for the Secondary links'),
'#default_value' => 'user-menu',
'#options' => $secondary_options,
'#tree' => FALSE,
'#description' => t("Select the source for the Secondary links. An advanced option allows you to use the same source for both Main links (currently %main) and Secondary links: if your source menu has two levels of hierarchy, the top level menu links will appear in the Main links, and the children of the active link will appear in the Secondary links." , array('%main' => $main_options[$main])),
);
return system_settings_form($form, TRUE);
}
?>