You are here

function getlocations_mapquest_get_icondata in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_mapquest/getlocations_mapquest.module \getlocations_mapquest_get_icondata()

Function

Return value

Returns

3 calls to getlocations_mapquest_get_icondata()
getlocations_mapquest_get_marker in modules/getlocations_mapquest/getlocations_mapquest.module
Function
getlocations_mapquest_marker_list in modules/getlocations_mapquest/getlocations_mapquest.module
Function
getlocations_mapquest_regenerate_markers in modules/getlocations_mapquest/getlocations_mapquest.module
Function

File

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

Code

function getlocations_mapquest_get_icondata($reset = FALSE) {
  static $icons;
  if (is_array($icons) && !$reset) {
    return $icons;
  }
  $icons = cache_get('getlocations_mapquest_icondata');
  if ($icons) {
    $icons = $icons->data;
  }
  if ($reset || !$icons) {
    module_load_include('inc', 'getlocations_mapquest', 'getlocations_mapquest.markerinfo');
    $icons = _getlocations_mapquest_get_icondata();
  }
  if ($icons) {
    cache_set('getlocations_mapquest_icondata', $icons, 'cache');
  }
  return $icons;
}