function _field_timer_jquery_countdown_led_summary in Field Timer 7
Help function.
Build summary for field_timer_jquery_countdown_led formatter.
1 call to _field_timer_jquery_countdown_led_summary()
File
- includes/
field_timer.inc, line 348 - Contains some help functions for formatters and settings forms.
Code
function _field_timer_jquery_countdown_led_summary($settings) {
$summary = array();
$types = array(
'auto' => t('Auto'),
'timer' => t('Timer'),
'countdown' => t('Countdown'),
);
$summary[] = t('Type: %type', array(
'%type' => $types[$settings['type']],
));
$themes = array(
'green' => t('Green'),
'blue' => t('Blue'),
);
$summary[] = t('Theme: %theme', array(
'%theme' => $themes[$settings['countdown_theme']],
));
$summary[] = t('Display days: %display_days', array(
'%display_days' => $settings['display_days'] ? t('Yes') : t('No'),
));
if ($settings['display_days']) {
$options = array(
1 => 9,
2 => 99,
3 => 999,
4 => 9999,
);
$summary[] = t('Maximum count of days: %max_count_of_days', array(
'%max_count_of_days' => $options[$settings['max_count_of_days']],
));
}
$summary[] = t('Display hours: %display_hours', array(
'%display_hours' => $settings['display_hours'] ? t('Yes') : t('No'),
));
$summary[] = t('Display minutes: %display_minutes', array(
'%display_minutes' => $settings['display_minutes'] ? t('Yes') : t('No'),
));
$summary[] = t('Display seconds: %display_seconds', array(
'%display_seconds' => $settings['display_seconds'] ? t('Yes') : t('No'),
));
return implode($summary, '<br />');
}