You are here

function date_field_formatter_settings_form in Date 7

Same name and namespace in other branches
  1. 7.3 date.field.inc \date_field_formatter_settings_form()
  2. 7.2 date.field.inc \date_field_formatter_settings_form()

Implements hook_field_formatter_settings_form().

File

./date.field.inc, line 44
Field hooks to implement a date field.

Code

function date_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
  $display = $instance['display'][$view_mode];
  $formatter = $display['type'];
  module_load_include('inc', 'date', 'date_admin');
  switch ($formatter) {
    case 'format_interval':
      return date_interval_formatter_settings_form($field, $instance, $view_mode, $form, $form_state);
    default:
      return date_default_formatter_settings_form($field, $instance, $view_mode, $form, $form_state);
  }
}