Merge pull request #761 from adamwight/api_autoloaded
[civicrm-core.git] / api / v3 / CustomField.php
index 233d1f7e84e6a6d233d847d3485d623ef2ba9ebf..0b65242c577dbcb92bea5f423b9bd1612676e637 100644 (file)
  * @version $Id: CustomField.php 30879 2010-11-22 15:45:55Z shot $
  */
 
-/**
- * Files required for this package
- */
-require_once 'CRM/Core/BAO/CustomField.php';
-
 /**
  * Most API functions take in associative arrays ( name => value pairs
  * as parameters. Some of the most commonly used parameters are
@@ -255,7 +250,6 @@ SELECT count(*)
     'Select', 'Multi-Select', 'CheckBox', 'Radio', 'AdvMulti-Select')) &&
     !isset($errors[$fieldName])
   ) {
-    require_once 'CRM/Core/OptionGroup.php';
     $options = CRM_Core_OptionGroup::valuesByID($fieldDetails['option_group_id']);
     if (!is_array($value)) {
       $value = array($value);