1 comment.api.php hook_comment_publish($comment)

Respond to a comment being published by a moderator.

Parameters

$comment: The comment the action is being performed on.

Related topics

File

core/modules/comment/comment.api.php, line 113
Hooks provided by the Comment module.

Code

function hook_comment_publish($comment) {
  backdrop_set_message(t('Comment: @subject has been published', array('@subject' => $comment->subject)));
}