diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-17 05:42:42 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-17 05:42:42 +0000 |
commit | fd7a32443705f6b4adcf77a6d6480301f90d5858 (patch) | |
tree | 973ffefc89807e6d8248ca849eb0892b73b975a2 /modules/comment/comment.admin.inc | |
parent | 00319d8e9a8b35148a6856d3380d572c571b94dc (diff) | |
download | brdo-fd7a32443705f6b4adcf77a6d6480301f90d5858.tar.gz brdo-fd7a32443705f6b4adcf77a6d6480301f90d5858.tar.bz2 |
#645374 follow-up by sun: Make entity ids available to confirm form submit handlers.
Diffstat (limited to 'modules/comment/comment.admin.inc')
-rw-r--r-- | modules/comment/comment.admin.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/comment/comment.admin.inc b/modules/comment/comment.admin.inc index 2153c2714..26f62696d 100644 --- a/modules/comment/comment.admin.inc +++ b/modules/comment/comment.admin.inc @@ -241,6 +241,8 @@ function comment_multiple_delete_confirm_submit($form, &$form_state) { */ function comment_confirm_delete($form, &$form_state, $comment) { $form['#comment'] = $comment; + // Always provide entity id in the same form key as in the entity edit form. + $form['cid'] = array('#type' => 'value', '#value' => $comment->cid); return confirm_form( $form, t('Are you sure you want to delete the comment %title?', array('%title' => $comment->subject)), |