Merge pull request #787 from eileenmcnaughton/whitespacelimited
[civicrm-core.git] / api / v3 / RelationshipType.php
index 291415b89f31cc5fcce60e2a0cc6ac9e266ff508..a25ad6716e600d97daec1485aa54933ac42a8b14 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-// $Id$
 
 /*
  +--------------------------------------------------------------------+
  *
  */
 
-/**
- * Include common API util functions
- */
-require_once 'CRM/Contact/BAO/RelationshipType.php';
-
 /**
  * Function to create relationship type
  *
@@ -65,8 +59,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');
@@ -87,7 +79,7 @@ function civicrm_api3_relationship_type_create($params) {
 
 /**
  * Adjust Metadata for Create action
- * 
+ *
  * The metadata is used for setting defaults, documentation & validation
  * @param array $params array or parameters determined by getfields
  */
@@ -122,7 +114,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');
   }