hook_comment_unpublish
function hook_comment_unpublish
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
File
- modules/comment/comment.api.php, line 127
- Hooks provided by the Comment module.
Code
function hook_comment_unpublish($comment) { drupal_set_message(t('Comment: @subject has been unpublished', array('@subject' => $comment->subject))); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!comment!comment.api.php/function/hook_comment_unpublish/7.x