Merge remote-tracking branch 'upstream/4.3' into 4.3-master-2013-05-24-02-32-04
[civicrm-core.git] / api / v3 / Relationship.php
index 1b6c3cb94ac132d61212e93eb5aef06ab6894a6e..ff5e5515a4acffd91ec0613c0724dc68b6b1e521 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-// $Id$
 
 /*
  +--------------------------------------------------------------------+
@@ -109,7 +108,6 @@ function _civicrm_api3_relationship_create_spec(&$params) {
  */
 function civicrm_api3_relationship_delete($params) {
 
-  require_once 'CRM/Utils/Rule.php';
   if (!CRM_Utils_Rule::integer($params['id'])) {
     return civicrm_api3_create_error('Invalid value for relationship ID');
   }
@@ -208,7 +206,6 @@ function _civicrm_api3_relationship_format_params($params, &$values) {
 
   foreach ($params as $key => $value) {
     // ignore empty values or empty arrays etc
-    require_once 'CRM/Utils/System.php';
     if (CRM_Utils_System::isNull($value)) {
       continue;
     }
@@ -216,7 +213,6 @@ function _civicrm_api3_relationship_format_params($params, &$values) {
     switch ($key) {
       case 'contact_id_a':
       case 'contact_id_b':
-        require_once 'CRM/Utils/Rule.php';
         if (!CRM_Utils_Rule::integer($value)) {
           throw new Exception("contact_id not valid: $value");
         }