hook_comment_unpublish

Versions
7
hook_comment_unpublish($comment)

The comment is being unpublished by the moderator.

Parameters

$comment Passes in the comment the action is being performed on.

Return value

Nothing.

Related topics

Code

drupal-7/modules/comment/comment.api.php, line 122

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

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options