You are here

function _field_timer_text_summary in Field Timer 7

Help function.

Build summary for field_timer_text formatter.

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

File

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

Code

function _field_timer_text_summary($settings) {
  $summary = array();
  $types = array(
    'auto' => t('Auto'),
    'timer' => t('Timer'),
    'countdown' => t('Countdown'),
  );
  $summary[] = t('Type: %type', array(
    '%type' => $types[$settings['type']],
  ));
  $summary[] = t('Granularity: %granularity', array(
    '%granularity' => $settings['granularity'],
  ));
  return implode('<br/>', $summary);
}