_abuse_set_user_content_remove($uid)
abuse/abuse.module, line 1035
<?php
function _abuse_set_user_content_remove($uid) {
//Remove the content from abuse, set it to one, and set the status to abuse_removed if it exists in the abuse system
$remove_node_contents = db_query("SELECT s.oid FROM {abuse_status} s INNER JOIN {abuse} a ON s.oid = a.oid INNER JOIN {node} n ON s.oid = n.nid WHERE n.uid = %d AND s.status > 0", $uid);
$remove_comment_contents = db_query("SELECT s.oid FROM {abuse_status} s INNER JOIN {abuse} a ON s.oid = a.oid INNER JOIN {comments} c ON s.oid = c.cid WHERE c.uid = %d AND s.status > 0", $uid);
while ($node = db_fetch_object($remove_node_contents)) {
_abuse_remove('node', $node->oid, ABUSE_REMOVED);
}
while ($comment = db_fetch_object($remove_comment_contents)) {
_abuse_remove('comment', $comment->oid, ABUSE_REMOVED);
}
}
?>