You are here

function getlocations_get_marker_titles in Get Locations 6

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

Get the list of marker titles. adapted from gmap

3 calls to getlocations_get_marker_titles()
getlocations_plugin_style_map::options_form in ./getlocations_plugin_style_map.inc
getlocations_regenerate_markers in ./getlocations.module
Regenerate the markerdata file.
getlocations_settings_form in ./getlocations.admin.inc
Function to display the getlocations admin settings form

File

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

Code

function getlocations_get_marker_titles($reset = FALSE) {
  static $titles;
  if (!$reset) {
    if (is_array($titles)) {
      return $titles;
    }
    $cached = cache_get('getlocations_marker_titles', 'cache');
    if (!empty($cached)) {
      $titles = $cached->data;
      if (is_array($titles)) {
        return $titles;
      }
    }
  }
  module_load_include('inc', 'getlocations', 'getlocations.markerinfo');
  $titles = _getlocations_get_marker_titles();
  cache_set('getlocations_marker_titles', $titles, 'cache');
  return $titles;
}