abuse_admin_allow

Definition

abuse_admin_allow($type = NULL, $oid = NULL)
abuse/abuse.admin.inc, line 375

Code

<?php
function abuse_admin_allow($type = NULL, $oid = NULL) {
  $object = _abuse_load($type, $oid);
  $status = FALSE;
  $message = t('Sorry, this content could not be allowed');
  if ($object->oid) {
    if (_abuse_allow($type, $oid)) {
      $status = TRUE;
      $message = t('Item allowed');
    }
  }
  return array('status' => $status, 'data' => $message);
}
?>