function hook_comment_unpublish

The comment is being unpublished by the moderator.


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

Return value


Related topics

3 functions implement hook_comment_unpublish()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

forum_comment_unpublish in drupal/modules/forum/forum.module
Implements hook_comment_unpublish().
search_comment_unpublish in drupal/modules/search/search.module
Implements hook_comment_unpublish().
tracker_comment_unpublish in drupal/modules/tracker/tracker.module
Implements hook_comment_unpublish().


drupal/modules/comment/comment.api.php, line 127
Hooks provided by the Comment module.


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