summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-02-01 19:45:58 +0000
committerDries Buytaert <dries@buytaert.net>2005-02-01 19:45:58 +0000
commitfbec279e4c6d2227a8453863e9149ea8ada96c10 (patch)
tree7d6643a20051069121b98e5efd053ede6549b05b /modules/taxonomy/taxonomy.module
parent7ccc5a6b1b4541a11b858e09cbd8244909d89c92 (diff)
downloadbrdo-fbec279e4c6d2227a8453863e9149ea8ada96c10.tar.gz
brdo-fbec279e4c6d2227a8453863e9149ea8ada96c10.tar.bz2
- Patch #16246 by Moshe: added mechanism to direct the user back to the referring page after completing a form.
(Moshe: the patch against node.module failed to apply.)
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index d69f988db..75967f0f8 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -241,6 +241,9 @@ function taxonomy_form_term($edit = array()) {
$form .= form_submit(t('Delete'));
$form .= form_hidden('tid', $edit['tid']);
}
+ else {
+ $form .= form_hidden('destination', $_GET['q']);
+ }
return form($form);
}