Definition

abuse_comment(&$comment, $op)
abuse/abuse.module, line 363

Description

Implementation of hook_comment

Code

<?php
function abuse_comment(&$comment, $op) {
  switch ($op) {
    case 'delete':
      _abuse_perform_delete($comment->cid, 'comment');
      break;
    case 'update':
      if (_abuse_get_status('comment', $comment['cid']) == 'OK') {
		if (variable_get('abuse_edit_unflag', 1)) {
          _abuse_perform_delete($comment['cid'], 'comment');
        }
      }
      break;
  }
}
?>