function hook_comment_unpublish
Act on a comment that is being saved in an unpublished state.
Parameters
$comment: Passes in the comment the action is being performed on.
Return value
Nothing.
Related topics
4 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.
- comment_hook_test_comment_unpublish in modules/
comment/ tests/ comment_hook_test.module - Implements hook_comment_unpublish().
- forum_comment_unpublish in modules/
forum/ forum.module - Implements hook_comment_unpublish().
- search_comment_unpublish in modules/
search/ search.module - Implements hook_comment_unpublish().
- tracker_comment_unpublish in modules/
tracker/ tracker.module - Implements hook_comment_unpublish().
1 invocation of hook_comment_unpublish()
- comment_save in modules/
comment/ comment.module - Accepts a submission of new or changed comment content.
File
-
modules/
comment/ comment.api.php, line 127
Code
function hook_comment_unpublish($comment) {
drupal_set_message(t('Comment: @subject has been unpublished', array(
'@subject' => $comment->subject,
)));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.