function _gmap_style_bubbles_gmap_pre_render_map in GMap Module 7.2
Adds "infobubble" custom library on map pages via the #pre_render callback.
Related topics
1 string reference to '_gmap_style_bubbles_gmap_pre_render_map'
- gmap_style_bubbles_element_info_alter in gmap_style_bubbles/
gmap_style_bubbles.module - Implements hook_element_info_alter().
File
- gmap_style_bubbles/
gmap_style_bubbles.module, line 25 - Adds the more options for theming the gmap popup bubble.
Code
function _gmap_style_bubbles_gmap_pre_render_map($element) {
$infobubble_library = libraries_detect('infobubble');
if ($infobubble_library['installed']) {
drupal_add_js(libraries_get_path('infobubble') . '/src/infobubble.js');
drupal_add_js(drupal_get_path('module', 'gmap_style_bubbles') . '/js/infobubble_extended.js', array(
'weight' => '1',
));
}
return $element;
}