You are here

public function field_timer_text_base::getSettingsSummary in Field Timer 7.2

@inheritdoc

Overrides field_timer_formatter_interface::getSettingsSummary

1 call to field_timer_text_base::getSettingsSummary()
field_timer_text_date_field_base::getSettingsSummary in includes/field_timer_text.inc
@inheritdoc
1 method overrides field_timer_text_base::getSettingsSummary()
field_timer_text_date_field_base::getSettingsSummary in includes/field_timer_text.inc
@inheritdoc

File

includes/field_timer_text.inc, line 45
Contains help classes to perform field_timer_text formatter related actions.

Class

field_timer_text_base
Base class for field_timer_text formatter.

Code

public function getSettingsSummary($settings, $field) {
  $summary = array();
  $types = $this
    ->formatterTypes();
  $granularity_options = $this
    ->granularitySettingsSummary($settings['granularity_type'], $settings['granularity_auto'], $settings['granularity_manual']);
  $summary[] = t('Type: %type', array(
    '%type' => $types[$settings['type']],
  ));
  $summary[] = t('Granularity: %granularity_type (%granularity)', $granularity_options);
  return $summary;
}