X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FRelationshipType.php;h=9259bac05635a1d9a5e46194c3e2590a7933e0e6;hb=2909e9cf6da2fc24e68c0d86060d1d1b2315fab1;hp=a25ad6716e600d97daec1485aa54933ac42a8b14;hpb=52910807c090423707113d77d4e38ef1d606ad6a;p=civicrm-core.git diff --git a/api/v3/RelationshipType.php b/api/v3/RelationshipType.php index a25ad6716e..9259bac056 100644 --- a/api/v3/RelationshipType.php +++ b/api/v3/RelationshipType.php @@ -1,5 +1,4 @@ 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); }