From 6083731ce4b20e1752bdfb636db4e33196003193 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 1 Dec 2009 16:03:35 +0000 Subject: - Patch #645374 by sun: make object IDs available to form submit handlers. This should be a best practice, IMO. --- modules/comment/comment.module | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/comment/comment.module') 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')) { -- cgit v1.2.3