You are here

function date_interval_formatter_settings_summary in Date 7

Same name and namespace in other branches
  1. 7.3 date_admin.inc \date_interval_formatter_settings_summary()
  2. 7.2 date_admin.inc \date_interval_formatter_settings_summary()

Settings summary for the interval formatter. @TODO Add settings later.

1 call to date_interval_formatter_settings_summary()
date_field_formatter_settings_summary in ./date.field.inc
Implements hook_field_formatter_settings_summary().

File

./date_admin.inc, line 150
Date administration code. Moved to separate file since there is a lot of code here that is not needed often.

Code

function date_interval_formatter_settings_summary($field, $instance, $view_mode) {
  $summary = array();
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $formatter = $display['type'];
  return t('Display time ago, showing @interval units.', array(
    '@interval' => $settings['interval'],
  ));
}