X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FRelationshipType.php;h=d0762420d0759d9bf341d95f2c7b471db1e8a81d;hb=718b280e1acb13d6de99c402df775b16f1826c6d;hp=291415b89f31cc5fcce60e2a0cc6ac9e266ff508;hpb=8574ccfa2c135b283069ec9e79304df1e8e66cfe;p=civicrm-core.git diff --git a/api/v3/RelationshipType.php b/api/v3/RelationshipType.php index 291415b89f..d0762420d0 100644 --- a/api/v3/RelationshipType.php +++ b/api/v3/RelationshipType.php @@ -38,11 +38,6 @@ * */ -/** - * Include common API util functions - */ -require_once 'CRM/Contact/BAO/RelationshipType.php'; - /** * Function to create relationship type * @@ -65,8 +60,6 @@ function civicrm_api3_relationship_type_create($params) { $params['label_b_a'] = $params['name_b_a']; } - require_once 'CRM/Utils/Rule.php'; - $ids = array(); if (isset($params['id']) && !CRM_Utils_Rule::integer($params['id'])) { return civicrm_api3_create_error('Invalid value for relationship type ID'); @@ -122,7 +115,6 @@ function civicrm_api3_relationship_type_get($params) { */ function civicrm_api3_relationship_type_delete($params) { - require_once 'CRM/Utils/Rule.php'; if ($params['id'] != NULL && !CRM_Utils_Rule::integer($params['id'])) { return civicrm_api3_create_error('Invalid value for relationship type ID'); }