function date_interval_formatter_settings_summary in Date 7
Same name and namespace in other branches
- 7.3 date_admin.inc \date_interval_formatter_settings_summary()
- 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()
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'],
));
}