| 7 comment.api.php | hook_comment_delete($comment) |
| 8 comment.api.php | hook_comment_delete(Drupal comment Comment $comment) |
The comment is being deleted by the moderator.
Parameters
$comment: Passes in the comment the action is being performed on.
Return value
Nothing.
Related topics
5 functions implement hook_comment_delete()
1 invocation of hook_comment_delete()
File
- modules/
comment/ comment.api.php, line 139 - Hooks provided by the Comment module.
Code
function hook_comment_delete($comment) {
drupal_set_message(t('Comment: @subject has been deleted', array('@subject' => $comment->subject)));
}
Login or register to post comments