Friday, September 28, 2007

Test story

if ($op == 'delete') {
$score_table_columns = array(
FLAGGING_BREAKING_NEWS => 'flag_bn_score',
FLAGGING_BREAKING_NEWS_HEAVY => 'flag_bn_score',
FLAGGING_GOOD_STUFF => 'flag_gs_score',
FLAGGING_NEWS_WANTED => 'flag_nw_score',
FLAGGING_NEEDS_IMPROVEMENT => 'flag_ni_score',
FLAGGING_FISHY => 'flag_fishy_score',
FLAGGING_SPAM => 'flag_spam_score',
);
$flag = flagging_load_comment_flag($comment);
flagging_flag_modify_score($comment->nid, -$flag, user_load(array('uid' => $comment->uid)));
db_query('DELETE FROM {flagging_comments} WHERE cid = %d', $comment->cid);
}


No comments: