1 comment.api.php hook_comment_unpublish($comment)

Respond to a comment being unpublished by a moderator.

Parameters

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

Related topics

File

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

Code

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