You are here

function gmap_style_bubbles_gmap in GMap Module 7.2

Enables hook_gmap().

Adds the bubble styles to the drupal map settings json at the top of the rendered map page.

Related topics

File

gmap_style_bubbles/gmap_style_bubbles.module, line 93
Adds the more options for theming the gmap popup bubble.

Code

function gmap_style_bubbles_gmap($op, &$map) {
  if ($op == 'pre_theme_map') {
    $bubble_styles_old = variable_get('gmap_bubble_styles');
    $bubble_styles['enableBubbleStyle'] = $bubble_styles_old['enable_bubble_style'];
    $bubble_styles['styleBubbleOptions'] = _gmap_style_bubbles_validate_for_json($bubble_styles_old['style_bubble_options']);
    $map['styleBubble'] = $bubble_styles;
  }
}