function tzfield_field_formatter_settings_summary in Time Zone Field 7
Implements hook_field_formatter_settings_summary().
File
- ./
tzfield.module, line 241 - Defines a time zone field type.
Code
function tzfield_field_formatter_settings_summary($field, $instance, $view_mode) {
$summary = '';
if ($instance['display'][$view_mode]['type'] == 'tzfield_date') {
$summary = t('Format string: %format<br />Sample date: %date', array(
'%format' => $instance['display'][$view_mode]['settings']['format'],
'%date' => format_date(REQUEST_TIME, 'custom', $instance['display'][$view_mode]['settings']['format']),
));
}
return $summary;
}