You are here

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()
editablefields_field_formatter_settings_form in ./editablefields.module
Implements hook_field_formatter_settings_form().
editablefields_field_formatter_settings_summary in ./editablefields.module
Implements hook_field_formatter_settings_summary().

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;
}