You are here

function _range_field_formatter_base_settings_summary in Range 7

Helper function. Returns summary for formatter base settings.

Parameters

array $summary: Formatter summary.

array $settings: Field formatter settings.

1 call to _range_field_formatter_base_settings_summary()
range_field_formatter_settings_summary in ./range.module
Implements hook_field_formatter_settings_summary().

File

./range.module, line 434
Defines range field types.

Code

function _range_field_formatter_base_settings_summary(array &$summary, array $settings) {
  if ($settings['range_combine']) {
    $summary[] = t('Equivalent values will be combined into a single value.');
  }
  if ($settings['from_prefix_suffix']) {
    $summary[] = t('Display with <em>FROM value</em> prefix and suffix.');
  }
  if ($settings['to_prefix_suffix']) {
    $summary[] = t('Display with <em>TO value</em> prefix and suffix.');
  }
  if ($settings['field_prefix_suffix']) {
    $summary[] = t('Display with <em>FIELD value</em> prefix and suffix.');
  }
  if ($settings['range_combine'] && $settings['combined_prefix_suffix']) {
    $summary[] = t('Display with <em>COMBINED value</em> prefix and suffix.');
  }
}