function data_get_field_types in Data 8
Same name and namespace in other branches
- 6 data.module \data_get_field_types()
- 7 data.module \data_get_field_types()
Get schema API field types supported by Data module.
1 call to data_get_field_types()
- TableConfigForm::fieldForm in src/
Form/ TableConfigForm.php - Helper function that generates a form snippet for defining a field.
File
- ./
data.module, line 93 - Hooks and API functions for data module.
Code
function data_get_field_types() {
$definitions = data_get_field_definitions();
$types = array();
foreach ($definitions as $def) {
$types[$def['type']] = $def['type'];
}
return $types;
}