X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FRelationshipType.php;h=e3f5661af840eac675aa31d0d749533d0f7c1d0f;hb=61ac5f959d775677c6eadffed193fde1d815eac4;hp=a25ad6716e600d97daec1485aa54933ac42a8b14;hpb=1c88e578623d8b2f94baa36e0f7dfeadbb1f2e2a;p=civicrm-core.git diff --git a/api/v3/RelationshipType.php b/api/v3/RelationshipType.php index a25ad6716e..e3f5661af8 100644 --- a/api/v3/RelationshipType.php +++ b/api/v3/RelationshipType.php @@ -1,10 +1,9 @@ del($params['id']); - if (!$result) { - return civicrm_api3_create_error('Could not delete relationship type'); - } - return civicrm_api3_create_success($result, $params, 'relationship_type', 'delete', $relationTypeBAO); + return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params); }