You are here

function range_field_formatter_settings_summary in Range 7

Implements hook_field_formatter_settings_summary().

File

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

Code

function range_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $summary = array();
  $from = _range_number_format(1234.123456789, $display['type'], $settings);
  $to = _range_number_format(4321.0987654321, $display['type'], $settings);
  $summary[] = $from . field_filter_xss($settings['range_separator']) . $to;
  _range_field_formatter_base_settings_summary($summary, $settings);
  return implode('<br />', $summary);
}