1 comment.api.php | hook_comment_delete($comment) |
Respond to comment deletion.
This hook is invoked from comment_delete_multiple() after field_attach_delete() has called and after the comment has been removed from the database.
Parameters
$comment: The comment object for the comment that has been deleted.
See also
Related topics
File
- core/
modules/ comment/ comment.api.php, line 162 - Hooks provided by the Comment module.
Code
function hook_comment_delete($comment) {
backdrop_set_message(t('Comment: @subject has been deleted', array('@subject' => $comment->subject)));
}