del($params['id']); if (!$result) { return civicrm_api3_create_error('Could not delete payment processor type'); } return civicrm_api3_create_success($result, $params, 'PaymentProcessorType', 'delete', $payProcTypeBAO); }