hook_comment_delete

Versions
7
hook_comment_delete($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

Code

modules/comment/comment.api.php, line 134

<?php
function hook_comment_delete($comment) {
  drupal_set_message(t('Comment: @subject has been deleted', array('@subject' => $comment->subject)));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.