abuse_comment($comment, $op)
abuse/abuse.module, line 415
Implementation of hook_comment().
<?php
function abuse_comment($comment, $op) {
switch ($op) {
case 'view':
if (user_access(ADMINISTER_ABUSE_REPORTS) || user_access(ADMINISTER_ALL_ABUSE_REPORTS)) {
$comment->abuse_status = intval(_abuse_get_object_status('comment', $comment->cid));
}
return $comment;
case 'delete':
// Delete abuse_flags
_abuse_cleanup_content('comment', $comment->cid);
}
}
?>