public function field_timer_county_base::getSettingsSummary in Field Timer 7.2
@inheritdoc
Overrides field_timer_formatter_interface::getSettingsSummary
1 call to field_timer_county_base::getSettingsSummary()
- field_timer_county_date_field_base::getSettingsSummary in includes/
field_timer_county.inc - @inheritdoc
1 method overrides field_timer_county_base::getSettingsSummary()
- field_timer_county_date_field_base::getSettingsSummary in includes/
field_timer_county.inc - @inheritdoc
File
- includes/
field_timer_county.inc, line 51 - Help file. Contains help classes to perform field_timer_county formatter related actions.
Class
- field_timer_county_base
- Base class for field_timer_county formatter.
Code
public function getSettingsSummary($settings, $field) {
$summary = array();
$animations = $this
->formatterAnimations();
$themes = $this
->formatterThemes();
$summary[] = t('Animation: %animation', array(
'%animation' => $animations[$settings['animation']],
));
$summary[] = t('Speed: %speed', array(
'%speed' => $settings['speed'] . 'ms',
));
$summary[] = t('Theme: %theme', array(
'%theme' => $themes[$settings['county_theme']],
));
$summary[] = t('Background: %css', array(
'%css' => $settings['background'],
));
$summary[] = t('Reflection: %state', array(
'%state' => $settings['reflection'] ? 'Enabled' : 'Disabled',
));
if ($settings['reflection']) {
$summary[] = t('Reflection opacity: %opacity', array(
'%opacity' => $settings['reflectionOpacity'],
));
}
return $summary;
}