break;
default:
- $field['sqlType'] = $field['phpType'] = $type;
+ $field['phpType'] = $this->value('phpType', $fieldXML, $type);
+ $field['sqlType'] = $type;
if ($type == 'int unsigned') {
$field['crmType'] = 'CRM_Utils_Type::T_INT';
}
else {
- $field['crmType'] = 'CRM_Utils_Type::T_' . strtoupper($type);
+ $field['crmType'] = $this->value('crmType', $fieldXML, 'CRM_Utils_Type::T_' . strtoupper($type));
}
break;
}
$validOptions = array(
'type',
'formatType',
+ 'label',
/* Fixme: prior to CRM-13497 these were in a flat structure
// CRM-13497 moved them to be nested within 'html' but there's no point
// making that change in the DAOs right now since we are in the process of
$field['widget']['required'] = $this->value('required', $fieldXML);
}
}
-
+ if (isset($fieldXML->localize_context)) {
+ $field['localize_context'] = $fieldXML->localize_context;
+ }
$field['pseudoconstant'] = $this->value('pseudoconstant', $fieldXML);
if (!empty($field['pseudoconstant'])) {
//ok this is a bit long-winded but it gets there & is consistent with above approach