You are here

function gm3_field_field_formatter_settings_summary in Google Maps API V3 7

Implements hook_field_formatter_settings_summary().

File

gm3_field/gm3_field.module, line 629

Code

function gm3_field_field_formatter_settings_summary($field, $instance, $view_mode) {
  switch ($instance['display'][$view_mode]['type']) {
    case 'gm3_entity_map':
    case 'gm3_field_map':
      $summary = array();
      if (!isset($instance['display'][$view_mode]['settings']['display_convex_hull']) || $instance['display'][$view_mode]['settings']['display_convex_hull']) {
        $summary[] = t('Display convex hull of points on the map.');
      }
      else {
        $summary[] = t('No convex hull will be displayed.');
      }
      return implode('<br />', $summary);
  }
}