Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-04-04-00-08-28
[civicrm-core.git] / api / v3 / PaymentProcessorType.php
index 1a22d7855ad2cad983697aaec2908c9159b9c7c9..4ce8d997314a5a4efce8bf980cc4e63bc3e490e9 100644 (file)
@@ -1,11 +1,10 @@
 <?php
-// $Id$
 
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -33,7 +32,7 @@
  *
  * @package CiviCRM_APIv3
  * @subpackage API_Contact
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * $Id: PaymentProcessorType.php 30415 2010-10-29 12:02:47Z shot $
  *
  */
@@ -41,7 +40,6 @@
 /**
  * Include common API util functions
  */
-require_once 'CRM/Financial/BAO/PaymentProcessorType.php';
 
 /**
  * Function to create payment_processor type
@@ -54,8 +52,6 @@ require_once 'CRM/Financial/BAO/PaymentProcessorType.php';
  * {@schema Core/PaymentProcessorType.xml}
  */
 function civicrm_api3_payment_processor_type_create($params) {
-  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 payment_processor type ID');
@@ -109,8 +105,6 @@ function civicrm_api3_payment_processor_type_get($params) {
  * @access public
  */
 function civicrm_api3_payment_processor_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 payment processor type ID');
   }