You are here

function _field_timer_jquery_countdown_summary in Field Timer 7

Help function.

Build summary for field_timer_jquery_countdown formatter.

1 call to _field_timer_jquery_countdown_summary()
field_timer_field_formatter_settings_summary in ./field_timer.module
Implements hook_field_formatter_settings_summary().

File

includes/field_timer.inc, line 321
Contains some help functions for formatters and settings forms.

Code

function _field_timer_jquery_countdown_summary($settings) {
  $summary = array();
  $types = array(
    'auto' => t('Auto'),
    'timer' => t('Timer'),
    'countdown' => t('Countdown'),
  );
  $summary[] = t('Type: %type', array(
    '%type' => $types[$settings['type']],
  ));
  $regions = _field_timer_jquery_countdown_regions();
  $summary[] = t('Region: %regional', array(
    '%regional' => $regions[$settings['regional']],
  ));
  $summary[] = t('Format: %format', array(
    '%format' => $settings['format'],
  ));
  $summary[] = t('Layout: %layout', array(
    '%layout' => $settings['layout'],
  ));
  $summary[] = t('Compact: %compact', array(
    '%compact' => $settings['compact'] ? t('Yes') : t('No'),
  ));
  $summary[] = t('Significant: %significant', array(
    '%significant' => $settings['significant'],
  ));
  $summary[] = t('Time separator: %timeSeparator', array(
    '%timeSeparator' => $settings['timeSeparator'],
  ));
  $summary[] = t('Pad with zeroes: %padZeroes', array(
    '%padZeroes' => $settings['padZeroes'] ? t('Yes') : t('No'),
  ));
  return implode($summary, '<br />');
}