diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-02-10 05:25:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-02-10 05:25:57 +0000 |
commit | 583d5a4ee95a583184f39497a44062599ad6e1d7 (patch) | |
tree | cdefa73496e1140b7856f4a2fe869b5962b08eac /modules/system.module | |
parent | 91152ba7af96b8f7125cc54a268f0056435908a1 (diff) | |
download | brdo-583d5a4ee95a583184f39497a44062599ad6e1d7.tar.gz brdo-583d5a4ee95a583184f39497a44062599ad6e1d7.tar.bz2 |
- Patch #48622 by adrian: remove drupal_goto from _submit functions.
Diffstat (limited to 'modules/system.module')
-rw-r--r-- | modules/system.module | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/system.module b/modules/system.module index e90d59a1d..e5559180a 100644 --- a/modules/system.module +++ b/modules/system.module @@ -55,7 +55,7 @@ function system_perm() { */ function system_elements() { // Top level form - $type['form'] = array('#method' => 'post', '#action' => request_uri()); + $type['form'] = array('#method' => 'post', '#action' => request_uri(), '#redirect' => ''); // Inputs $type['checkbox'] = array('#input' => TRUE, '#return_value' => 1); @@ -787,7 +787,6 @@ function system_settings_form_submit($form_id, $values) { drupal_set_message(t('The configuration options have been saved.')); } menu_rebuild(); - drupal_goto($_GET['q']); } /** @@ -887,7 +886,7 @@ function system_themes_submit($form_id, $values) { menu_rebuild(); drupal_set_message(t('The configuration options have been saved.')); - drupal_goto('admin/themes'); + return 'admin/themes'; } /** @@ -1021,7 +1020,7 @@ function system_modules_submit($form_id, $edit) { } drupal_set_message(t('The configuration options have been saved.')); - drupal_goto('admin/modules'); + return 'admin/modules'; } |