* Fixed the Inactive Parent anchor name so they all are unique.

* Fixed the Devel menu name and identifier.
* Added support for users to select multiple menus.
This commit is contained in:
Alexis Wilke
2010-05-16 10:45:25 +00:00
parent d9f856a075
commit 4430806082
5 changed files with 49 additions and 6 deletions

View File

@@ -21,12 +21,13 @@ function simplemenu_admin_settings() {
);
if (module_exists('menu')) {
$form['default_menu']['simplemenu_menu'] = array(
$form['default_menu']['simplemenu_menus'] = array(
'#type' => 'select',
'#multiple' => TRUE,
'#title' => t('Menu'),
'#options' => menu_parent_options(menu_get_menus(), array('mlid' => 0)), // return complete tree
'#default_value' => variable_get('simplemenu_menu', 'navigation:0'),
'#description' => t('Select the menu to display.'),
'#default_value' => variable_get('simplemenu_menus', array('navigation:0')),
'#description' => t('Select the menu to display. Select multiple menus to show each one of them (use Ctrl or Shift to select multiple entries.) Please, avoid selecting a parent and a child from the same menu.'),
);
}