function gmap_get_marker_titles in GMap Module 7.2
Same name and namespace in other branches
- 5 gmap.module \gmap_get_marker_titles()
- 6.2 gmap.module \gmap_get_marker_titles()
- 6 gmap.module \gmap_get_marker_titles()
- 7 gmap.module \gmap_get_marker_titles()
Get the list of marker titles.
@todo move this to GmapMarkerInfo class
8 calls to gmap_get_marker_titles()
- gmap_fields_field_formatter_view in gmap_fields/
gmap_fields.module - Implements hook_field_formatter_view().
- gmap_fields_field_validate in gmap_fields/
gmap_fields.module - Implements hook_field_validate().
- gmap_fields_field_widget_form_alter in gmap_fields/
gmap_fields.module - Implements hook_field_widget_form_alter().
- gmap_plugin_style_gmapextended::options_form in ./
gmap_plugin_style_gmapextended.inc - Render the given style.
- gmap_regenerate_markers in ./
gmap.module - Regenerate the markerdata file.
1 string reference to 'gmap_get_marker_titles'
- gmap_fields_field_info in gmap_fields/
gmap_fields.module - Implements hook_field_info().
File
- ./
gmap.module, line 1128 - GMap -- Routines to use the Google Maps API in Drupal.
Code
function gmap_get_marker_titles($reset = FALSE) {
static $titles;
if (!$reset) {
if (is_array($titles)) {
return $titles;
}
$cached = cache_get('gmap_marker_titles', 'cache');
if (!empty($cached)) {
$titles = $cached->data;
if (is_array($titles)) {
return $titles;
}
}
}
module_load_include('inc', 'gmap', 'gmap_markerinfo');
$titles = _gmap_get_marker_titles();
cache_set('gmap_marker_titles', $titles, 'cache');
return $titles;
}