You are here

function date_field_formatter_settings_summary in Date 7

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

Implements hook_field_formatter_settings_summary().

File

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

Code

function date_field_formatter_settings_summary($field, $instance, $view_mode) {
  $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_summary($field, $instance, $view_mode);
    default:
      return date_default_formatter_settings_summary($field, $instance, $view_mode);
  }
}