continue;
}
// Pick an option value if needed
- if ($value['type'] !== CRM_Utils_Type::T_BOOL) {
+ if ($value['type'] !== CRM_Utils_Type::T_BOOLEAN) {
$options = $daoName::buildOptions($dbName, 'create');
if ($options) {
$object->$dbName = key($options);
$object->$dbName = $counter;
break;
- case CRM_Utils_Type::T_BOOL:
+ case CRM_Utils_Type::T_BOOLEAN:
if (isset($value['default'])) {
$object->$dbName = $value['default'];
}
if (isset($query->_fields[$field]['type'])) {
switch ($query->_fields[$field]['type']) {
case CRM_Utils_Type::T_INT:
- case CRM_Utils_Type::T_BOOL:
case CRM_Utils_Type::T_BOOLEAN:
$sqlColumns[$fieldName] = "$fieldName varchar(16)";
break;
T_ENUM = 2,
T_DATE = 4,
T_TIME = 8,
- T_BOOL = 16,
T_BOOLEAN = 16,
T_TEXT = 32,
T_LONGTEXT = 32,
$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,
+ 'type' => CRM_Utils_Type::T_BOOLEAN,
);
$params['data_type']['api.default'] = 'String';
$params['is_active']['api.default'] = 1;
function _civicrm_api3_uf_field_create_spec(&$params) {
$params['option.autoweight'] = array(
'title' => "Automatically adjust weights in UFGroup to align with UFField",
- 'type' => CRM_Utils_Type::T_BOOL
+ 'type' => CRM_Utils_Type::T_BOOLEAN
);
}
}
break;
- case CRM_Utils_Type::T_BOOL:
case CRM_Utils_Type::T_BOOLEAN:
// probably created with a 1
$entity[$field] = 0;
}
break;
- case CRM_Utils_Type::T_BOOL:
case CRM_Utils_Type::T_BOOLEAN:
// probably created with a 1
$entity[$fieldName] = '0';