X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FRelationshipType.php;h=8c2f6bad5db664b0c362879ca783ed1f6cad2f2b;hb=85bb0909cffd925f4cd5c0022a68a1ff74d3ad8e;hp=291415b89f31cc5fcce60e2a0cc6ac9e266ff508;hpb=5c56f6bafbd2cd9a3e1820fa179020fe1513c373;p=civicrm-core.git diff --git a/api/v3/RelationshipType.php b/api/v3/RelationshipType.php index 291415b89f..8c2f6bad5d 100644 --- a/api/v3/RelationshipType.php +++ b/api/v3/RelationshipType.php @@ -1,11 +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); }