function editablefields_field_formatter_default_settings in Editable Fields 7
Return default settings for a field type.
2 calls to editablefields_field_formatter_default_settings()
File
- ./
editablefields.module, line 196 - Editable fields module.
Code
function editablefields_field_formatter_default_settings($settings, $field) {
if (empty($settings['fallback_format'])) {
$field_type = field_info_field_types($field['type']);
$settings['fallback_format'] = $field_type['default_formatter'];
}
$settings += array(
'fallback_settings' => array(),
);
return $settings;
}