diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-12-27 10:36:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-12-27 10:36:16 +0000 |
commit | 34a5d46022b47be3ef30f32ce1187081918c7ab0 (patch) | |
tree | d67a98692037be7a34ecc3e4dba14147efe79c29 /modules | |
parent | 2fe78b84f314a598fb6b45ee7624d4b320a47074 (diff) | |
download | brdo-34a5d46022b47be3ef30f32ce1187081918c7ab0.tar.gz brdo-34a5d46022b47be3ef30f32ce1187081918c7ab0.tar.bz2 |
- Patch #36465 by chx / Richard: made it possible to link to the front page.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/menu.module | 2 | ||||
-rw-r--r-- | modules/menu/menu.module | 2 | ||||
-rw-r--r-- | modules/system.module | 3 | ||||
-rw-r--r-- | modules/system/system.module | 3 |
4 files changed, 8 insertions, 2 deletions
diff --git a/modules/menu.module b/modules/menu.module index 37cf137b7..ef22582cf 100644 --- a/modules/menu.module +++ b/modules/menu.module @@ -400,7 +400,7 @@ function menu_edit_item_form($edit) { else { $form['description'] = array('#type' => 'textfield', '#title' => t('Description'), '#default_value' => $edit['description'], '#description' => t('The description displayed when hovering over a menu item.')); - $path_description = t('The Drupal path this menu item links to.'); + $path_description = t('The Drupal path this menu item links to. Enter %front to link to the front page.', array('%front' => theme('placeholder', '<front>'))); if ($edit['type'] & MENU_CREATED_BY_ADMIN) { $form['path'] = array('#type' => 'textfield', '#title' => t('Path'), '#default_value' => $edit['path'], '#description' => $path_description, '#required' => TRUE); diff --git a/modules/menu/menu.module b/modules/menu/menu.module index 37cf137b7..ef22582cf 100644 --- a/modules/menu/menu.module +++ b/modules/menu/menu.module @@ -400,7 +400,7 @@ function menu_edit_item_form($edit) { else { $form['description'] = array('#type' => 'textfield', '#title' => t('Description'), '#default_value' => $edit['description'], '#description' => t('The description displayed when hovering over a menu item.')); - $path_description = t('The Drupal path this menu item links to.'); + $path_description = t('The Drupal path this menu item links to. Enter %front to link to the front page.', array('%front' => theme('placeholder', '<front>'))); if ($edit['type'] & MENU_CREATED_BY_ADMIN) { $form['path'] = array('#type' => 'textfield', '#title' => t('Path'), '#default_value' => $edit['path'], '#description' => $path_description, '#required' => TRUE); diff --git a/modules/system.module b/modules/system.module index f98ae7c24..b634a232e 100644 --- a/modules/system.module +++ b/modules/system.module @@ -752,6 +752,9 @@ function system_settings_form_submit($form_id, $values) { else { drupal_set_message(t('The configuration options have been saved.')); } + if ($form_id == 'system_settings_form') { + menu_rebuild(); + } } /** diff --git a/modules/system/system.module b/modules/system/system.module index f98ae7c24..b634a232e 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -752,6 +752,9 @@ function system_settings_form_submit($form_id, $values) { else { drupal_set_message(t('The configuration options have been saved.')); } + if ($form_id == 'system_settings_form') { + menu_rebuild(); + } } /** |