You are here

function getlocations_setlocations in Get Locations 6.2

Same name and namespace in other branches
  1. 6 getlocations.module \getlocations_setlocations()
  2. 7.2 getlocations.module \getlocations_setlocations()
  3. 7 getlocations.module \getlocations_setlocations()

Set up javascript settings and map

6 calls to getlocations_setlocations()
getlocations_lids in ./getlocations.module
Menu callback
getlocations_nids in ./getlocations.module
Menu callback
getlocations_nodemap in ./getlocations.module
Menu callback
getlocations_typemap in ./getlocations.module
Menu callback
getlocations_usermap in ./getlocations.module
Menu callback

... See full list

File

./getlocations.module, line 533
Displays locations on a map. for Drupal 6 using version 3 googlemaps API

Code

function getlocations_setlocations($latlons, $minmaxes = '', $type = 'node', $node = '', $width = '', $height = '') {
  if (!getlocations_check()) {
    return t('You need to !c first.', array(
      '!c' => l('configure Getlocations', 'admin/settings/getlocations'),
    ));
  }
  global $language;
  $getlocations_defaults = getlocations_defaults();
  $mapid = getlocations_setup_map($getlocations_defaults);
  getlocations_js_settings_do($getlocations_defaults, $latlons, $minmaxes, $mapid);
  if (empty($width)) {
    $width = $getlocations_defaults['width'];
  }
  if (empty($height)) {
    $height = $getlocations_defaults['height'];
  }
  return theme('getlocations_show', $width, $height, $getlocations_defaults, $mapid, $type, $node);
}