You are here

function theme_gm3_region_button in Google Maps API V3 7

Region tools button

2 theme calls to theme_gm3_region_button()
gm3_region_field_field_widget_form in gm3_region/gm3_region_field/gm3_region_field.module
Implements hook_field_widget_form().
gm3_region_gm3_combination_form_alter in gm3_region/gm3_region_field/gm3_region_field.module
Function to update the map on the combination form element.

File

gm3_region/gm3_region.theme.inc, line 6

Code

function theme_gm3_region_button($variables) {
  theme('gm3_beautytip', array(
    'selector' => '.gm3-tools-button[data-gm3-class="region"]',
    'text' => t('Click to enable selecting regions from the map.<br/>Add regions by clicking on the map, remove by right clicking on a highlighted region.<br/>The size of the region being selected is depended on your zoom level.  Zoom in to select smaller regions, zoom out to select larger ones, or click the "Selecting by..." text at the top of the map.'),
  ));
  return '<div data-gm3-class="region" class="gm3-tools-button"><p>+ ' . t('Region') . '</p></div>';
}