You are here

function getlocations_get_icondata in Get Locations 6

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

Get the JSON icon data for all the default markers.

1 call to getlocations_get_icondata()
getlocations_regenerate_markers in ./getlocations.module
Regenerate the markerdata file.

File

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

Code

function getlocations_get_icondata($reset = FALSE) {
  static $icons;
  if (is_array($icons) && !$reset) {
    return $icons;
  }
  $icons = cache_get('getlocations_icondata');
  if ($icons) {
    $icons = $icons->data;
  }
  if ($reset || !$icons) {
    module_load_include('inc', 'getlocations', 'getlocations.markerinfo');
    $icons = _getlocations_get_icondata();
  }
  cache_set('getlocations_icondata', $icons, 'cache');
  return $icons;
}