You are here

function addressfield_staticmap_get_size_args in Address Field Static Map 7

2 calls to addressfield_staticmap_get_size_args()
addressfield_staticmap_field_formatter_view in ./addressfield_staticmap.module
Implements hook_field_formatter_view().
addressfield_staticmap_get_size_description in ./addressfield_staticmap.module

File

./addressfield_staticmap.module, line 561
Main file for the addressfield static map module.

Code

function addressfield_staticmap_get_size_args($settings) {
  $api = addressfield_staticmap_get_map_type($settings);
  if ($api == 'google_maps') {
    return $settings['map_size'] ? $settings['map_size'] : DEFAULT_MAP_SIZE;
  }
  return $settings['map_size'] ? $settings['map_size'] : '';
}