You are here

function getlocations_fields_mapinfo in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_fields/getlocations_fields.module \getlocations_fields_mapinfo()
7 calls to getlocations_fields_mapinfo()
getlocations_commentmap in ./getlocations.module
Page callback: Displays a map.
getlocations_lids in ./getlocations.module
Page callback: Displays a map.
getlocations_nids in ./getlocations.module
Page callback: Displays a map.
getlocations_nodemap in ./getlocations.module
Page callback: displays a map.
getlocations_termmap in ./getlocations.module
Page callback: Displays a map.

... See full list

File

modules/getlocations_fields/getlocations_fields.module, line 4026
getlocations_fields.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_fields_mapinfo($location) {
  $defaults = getlocations_fields_data_keys('d');
  $info = array(
    'mapzoom' => isset($location['mapzoom']) ? $location['mapzoom'] : $defaults['mapzoom'],
    'map_maptype' => isset($location['map_maptype']) ? $location['map_maptype'] : $defaults['map_maptype'],
  );
  return $info;
}