summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-01 16:03:35 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-01 16:03:35 +0000
commit6083731ce4b20e1752bdfb636db4e33196003193 (patch)
treefc41b7d5adb076733d19ca3c8525dc4d03f0f43e /modules/comment/comment.module
parentf79924352fc9b1caa5e734e62f0dfa66844f31fb (diff)
downloadbrdo-6083731ce4b20e1752bdfb636db4e33196003193.tar.gz
brdo-6083731ce4b20e1752bdfb636db4e33196003193.tar.bz2
- Patch #645374 by sun: make object IDs available to form submit handlers. This should be a best practice, IMO.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 3ec48f3f7..583cefb80 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -2031,6 +2031,7 @@ function comment_form_submit($form, &$form_state) {
}
comment_save($comment);
+ $form_state['values']['cid'] = $comment->cid;
// Explain the approval queue if necessary.
if ($comment->status == COMMENT_NOT_PUBLISHED) {
if (!user_access('administer comments')) {