Merge pull request #1035 from GiantRobot/CRM-12720
[civicrm-core.git] / api / v3 / CustomField.php
index 7eeda3daf2b330199c748b81ca23efc96e3ccb74..300f0d72e672db08af9f6f8b0a0212d05672b1b8 100644 (file)
@@ -88,11 +88,14 @@ function civicrm_api3_custom_field_create($params) {
 function _civicrm_api3_custom_field_create_spec(&$params) {
   $params['label']['api.required'] = 1;
   $params['custom_group_id']['api.required'] = 1;
+  $params['is_active']['api.default'] = 1;
   $params['option_type'] = array(
     'title' => 'This (boolean) field tells the BAO to create an option group for the field if the field type is appropriate',
     'api.default' => 1,
     'type' => CRM_Utils_Type::T_BOOL,
   );
+  $params['data_type']['api.default'] = 'String';
+  $params['is_active']['api.default'] = 1;
 }
 
 /**