You are here

function getlocations_get_marker_titles in Get Locations 7

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

Get the list of marker titles. adapted from gmap

13 calls to getlocations_get_marker_titles()
getlocations_fields_field_settings_form in modules/getlocations_fields/getlocations_fields.module
Implements hook_field_settings_form(). Add settings to a field settings form.
getlocations_fields_field_widget_form in modules/getlocations_fields/getlocations_fields.module
Implements hook_field_widget_form(). Return the form for a single field widget.
getlocations_fields_views_search_form in modules/getlocations_fields/getlocations_fields.functions.inc
Provides a form for congfiguring search marker
getlocations_leaflet_plugin_style::options_form in modules/getlocations_leaflet/views/getlocations_leaflet_plugin_style.inc
Options form
getlocations_leaflet_settings_form in modules/getlocations_leaflet/getlocations_leaflet.module
Function

... See full list

File

./getlocations.module, line 2157
getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

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;
}