diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-06-24 10:09:53 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-06-24 10:09:53 +0000 |
commit | 7093495f7c209d712ce951cb57781710f19f2653 (patch) | |
tree | bb9360175b19f5820cafe1616cff79afede5dc64 /modules/comment/comment.module | |
parent | 028c8e60504546b1ad2342f168bbf5bf3d25f618 (diff) | |
download | brdo-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/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index d12798c59..e65f88095 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1114,9 +1114,8 @@ function comment_delete(&$form_state, $cid = NULL) { return drupal_delete_confirm( array( 'question' => t('Are you sure you want to delete the comment %title?', array('%title' => $comment->subject)), - 'path' => 'node/'. $comment->nid, - 'description' => t('Any replies to this comment will be lost. This action cannot be undone.'), 'destination' => 'node/'. $comment->nid, + 'description' => t('Any replies to this comment will be lost. This action cannot be undone.'), ) ); } @@ -1344,9 +1343,8 @@ function comment_multiple_delete_confirm(&$form_state) { array( 'form' => $form, 'question' => t('Are you sure you want to delete these comments and all their children?'), - 'path' => 'admin/content/comment', - 'yes' => t('Delete all'), 'destination' => 'admin/content/comment', + 'yes' => t('Delete all'), ) ); } |