1.20.x comment.module | comment_publish_action($comment, $context = array()) |
Publishes a comment.
Parameters
$comment: The comment object.
Related topics
File
- modules/
comment/ comment.module, line 2365 - Enables users to comment on published content.
Code
function comment_publish_action($comment, $context = array()) {
$comment->status = COMMENT_PUBLISHED;
$comment->save();
}