Merge pull request #761 from adamwight/api_autoloaded
[civicrm-core.git] / api / v3 / RelationshipType.php
index 291415b89f31cc5fcce60e2a0cc6ac9e266ff508..d0762420d0759d9bf341d95f2c7b471db1e8a81d 100644 (file)
  *
  */
 
-/**
- * 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');
   }