From fbec279e4c6d2227a8453863e9149ea8ada96c10 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 1 Feb 2005 19:45:58 +0000 Subject: - 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.) --- modules/taxonomy/taxonomy.module | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/taxonomy/taxonomy.module') 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); } -- cgit v1.2.3