diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-20 18:26:41 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-20 18:26:41 +0000 |
commit | 6eaaa3c1b3779aa4a965232c97eb167f749ed09b (patch) | |
tree | 6578f22257d34c791efcda88ec9f031ce94d858a /modules/menu | |
parent | ced08bf27a5c5dec209e2818b162bcf6ed80848b (diff) | |
download | brdo-6eaaa3c1b3779aa4a965232c97eb167f749ed09b.tar.gz brdo-6eaaa3c1b3779aa4a965232c97eb167f749ed09b.tar.bz2 |
#160168 by kkaefer and pwolanin: restore lost Drupal 5 functionality of being able to set primary and secondary links differently
Diffstat (limited to 'modules/menu')
-rw-r--r-- | modules/menu/menu.module | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/modules/menu/menu.module b/modules/menu/menu.module index 8a5f59e10..999e16761 100644 --- a/modules/menu/menu.module +++ b/modules/menu/menu.module @@ -856,14 +856,24 @@ function menu_configure() { '#value' => 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.'), ); - $authoring_options = menu_get_menus(); + $menu_options = menu_get_menus(); $form['menu_default_node_menu'] = array('#type' => 'select', '#title' => t('Default menu for content'), '#default_value' => variable_get('menu_default_node_menu', 'navigation'), - '#options' => $authoring_options, + '#options' => $menu_options, '#description' => t('Choose the menu to be the default in the menu options in the content authoring form.'), ); + $secondary_options = array('secondary-links' => $menu_options['secondary-links'], 'primary-links' => $menu_options['primary-links']); + $form["menu_secondary_links_source"] = array( + '#type' => 'radios', + '#title' => t('Source for the secondary links'), + '#default_value' => variable_get('menu_secondary_links_source', 'secondary-links'), + '#options' => $secondary_options, + '#tree' => FALSE, + '#description' => t('Select what should be displayed as the secondary links . If %primary is choosen the children of the active primary menu link (if any) will be shown instead of the links in the %secondary menu.', array('%secondary' => $menu_options['secondary-links'], '%primary' => $menu_options['primary-links'])), + ); + return system_settings_form($form); } |