summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index e90d59a1d..e5559180a 100644
--- a/modules/system/system.module
+++ b/modules/system/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';
}