'title' => empty($field['name']) ? NULL : ucwords(str_replace('_', ' ', $field['name'])),
'entity' => $this->getEntityName(),
'required' => FALSE,
+ 'readonly' => FALSE,
'options' => !empty($field['pseudoconstant']),
'data_type' => \CRM_Utils_Array::value('type', $field, 'String'),
], array_flip($fields));
'name' => 'data_type',
'data_type' => 'String',
'options' => [
- 'Integer' => ts('Integer'),
+ 'Array' => ts('Array'),
'Boolean' => ts('Boolean'),
+ 'Date' => ts('Date'),
+ 'Float' => ts('Float'),
+ 'Integer' => ts('Integer'),
'String' => ts('String'),
'Text' => ts('Text'),
- 'Date' => ts('Date'),
'Timestamp' => ts('Timestamp'),
- 'Array' => ts('Array'),
],
],
[
'name' => 'input_type',
'data_type' => 'String',
'options' => [
- 'Text' => ts('Text'),
- 'Number' => ts('Number'),
- 'Select' => ts('Select'),
+ 'ChainSelect' => ts('ChainSelect'),
'CheckBox' => ts('CheckBox'),
- 'Radio' => ts('Radio'),
'Date' => ts('Date'),
- 'File' => ts('File'),
'EntityRef' => ts('EntityRef'),
- 'ChainSelect' => ts('ChainSelect'),
+ 'File' => ts('File'),
+ 'Number' => ts('Number'),
+ 'Radio' => ts('Radio'),
+ 'Select' => ts('Select'),
+ 'Text' => ts('Text'),
],
],
[
'name' => 'entity',
'data_type' => 'String',
],
+ [
+ 'name' => 'readonly',
+ 'data_type' => 'Boolean',
+ ],
];
}