summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2007-06-24 10:09:53 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2007-06-24 10:09:53 +0000
commit7093495f7c209d712ce951cb57781710f19f2653 (patch)
treebb9360175b19f5820cafe1616cff79afede5dc64 /modules/node/node.module
parent028c8e60504546b1ad2342f168bbf5bf3d25f618 (diff)
downloadbrdo-7093495f7c209d712ce951cb57781710f19f2653.tar.gz
brdo-7093495f7c209d712ce951cb57781710f19f2653.tar.bz2
#154046: Optimize confirm_form syntax for common usage (and fix some $form_state bugs).
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 6463a7f81..ccc34ae98 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1743,9 +1743,8 @@ function node_multiple_delete_confirm(&$form_state) {
array(
'form' => $form,
'question' => t('Are you sure you want to delete these items?'),
- 'path' => 'admin/content/node',
- 'yes' => t('Delete all'),
'destination' => 'admin/content/node',
+ 'yes' => t('Delete all'),
)
);
}
@@ -2443,7 +2442,7 @@ function node_delete_confirm(&$form_state, $node) {
return drupal_delete_confirm(
array(
'question' => t('Are you sure you want to delete %title?', array('%title' => $node->title)),
- 'path' => isset($_GET['destination']) ? $_GET['destination'] : 'node/'. $node->nid,
+ 'cancel' => isset($_GET['destination']) ? $_GET['destination'] : 'node/'. $node->nid,
'destination' => isset($_GET['destination']) ? $_GET['destination'] : '<front>',
)
);