You are here

function leaflet_field_formatter_settings_summary in Leaflet 7

Implements hook_field_formatter_settings_summary().

File

./leaflet.formatters.inc, line 130
Leaflet field formatter functions.

Code

function leaflet_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $summary = '';
  if ($display['type'] == 'geofield_leaflet') {
    $summary = t('Leaflet map: @map', array(
      '@map' => $settings['leaflet_map'],
    ));
  }
  return $summary;
}