_abuse_get_status($type, $oid)
abuse/abuse.module, line 1114
<?php
function _abuse_get_status($type, $oid) {
$status = array(
0 => t('OK'),
ABUSE_PENDING => t('Pending'),
ABUSE_HIDDEN => t('Hidden'),
ABUSE_REMOVED => t('Removed')
);
$res = db_result(db_query("SELECT status FROM {abuse_status} WHERE type = '%s' AND oid = %d", $type, $oid));
return $status[(int)$res];
}
?>