if ($op == 'delete') {
$flag = flagging_load_comment_flag($comment);
if ($flag) {
flagging_flag_modify_score($comment->nid, -$flag, user_load(array('uid' => $comment->uid)));
if ($flag > 0) {
db_query('DELETE FROM {flagging_node} WHERE flag = %d AND nid = %d AND uid = %d', $flag, $comment->nid, $comment->uid);
}
}
db_query('DELETE FROM {flagging_comments} WHERE cid = %d', $comment->cid);
}
No comments:
Post a Comment