hook_comment_publish

7 comment.api.php hook_comment_publish($comment)
8 comment.api.php hook_comment_publish(Drupal comment Comment $comment)

Respond to a comment being published by a moderator.

Parameters

Drupal\comment\Comment $comment: The comment the action is being performed on.

Related topics

3 functions implement hook_comment_publish()

1 invocation of hook_comment_publish()

File

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

Code

function hook_comment_publish(Drupal comment Comment $comment) {
  drupal_set_message(t('Comment: @subject has been published', array('@subject' => $comment->subject)));
}
Login or register to post comments