summaryrefslogtreecommitdiff
path: root/modules/block.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-02-10 05:25:57 +0000
committerDries Buytaert <dries@buytaert.net>2006-02-10 05:25:57 +0000
commit583d5a4ee95a583184f39497a44062599ad6e1d7 (patch)
treecdefa73496e1140b7856f4a2fe869b5962b08eac /modules/block.module
parent91152ba7af96b8f7125cc54a268f0056435908a1 (diff)
downloadbrdo-583d5a4ee95a583184f39497a44062599ad6e1d7.tar.gz
brdo-583d5a4ee95a583184f39497a44062599ad6e1d7.tar.bz2
- Patch #48622 by adrian: remove drupal_goto from _submit functions.
Diffstat (limited to 'modules/block.module')
-rw-r--r--modules/block.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/block.module b/modules/block.module
index a39a9fdf2..449c46910 100644
--- a/modules/block.module
+++ b/modules/block.module
@@ -406,7 +406,7 @@ function block_admin_configure_submit($form_id, $form_values) {
module_invoke($form_values['module'], 'block', 'save', $form_values['delta'], $form_values);
drupal_set_message(t('The block configuration has been saved.'));
cache_clear_all();
- drupal_goto('admin/block');
+ return 'admin/block';
}
}
@@ -430,7 +430,7 @@ function block_box_add_submit($form_id, $form_values) {
if (!form_get_errors()) {
if (block_box_save($form_values)) {
drupal_set_message(t('The block has been created.'));
- drupal_goto('admin/block');
+ return 'admin/block';
}
}
}
@@ -453,7 +453,7 @@ function block_box_delete_confirm_submit($form_id, $form_values) {
db_query('DELETE FROM {boxes} WHERE bid = %d', $form_values['bid']);
drupal_set_message(t('The block %name has been removed.', array('%name' => theme('placeholder', $form_values['info']))));
cache_clear_all();
- drupal_goto('admin/block');
+ return 'admin/block';
};
function block_box_form($edit = array()) {