From 3cb2a5eff420a00a3579df5ed7950f8d5c761bce Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 14 Oct 2009 20:42:47 +0000 Subject: - Patch #582456 by dereine, sun, tobiasb: make confirm_form() respect query string destination. --- modules/node/node.pages.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/node/node.pages.inc') diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc index 276a2dd86..adb5f2da3 100644 --- a/modules/node/node.pages.inc +++ b/modules/node/node.pages.inc @@ -462,7 +462,7 @@ function node_delete_confirm($form, &$form_state, $node) { return confirm_form($form, t('Are you sure you want to delete %title?', array('%title' => $node->title[FIELD_LANGUAGE_NONE][0]['value'])), - isset($_GET['destination']) ? $_GET['destination'] : 'node/' . $node->nid, + 'node/' . $node->nid, t('This action cannot be undone.'), t('Delete'), t('Cancel') -- cgit v1.2.3