hook_comment_publish

  1. drupal
    1. 7
Versions
7 hook_comment_publish($comment)

The comment is being published by the moderator.

Parameters

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

Return value

Nothing.

Related topics

Code

drupal/modules/comment/comment.api.php, line 116

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