private function ip_geoloc_plugin_style_leaflet::_add_marker_tooltips in IP Geolocation Views & Maps 7
1 call to ip_geoloc_plugin_style_leaflet::_add_marker_tooltips()
- ip_geoloc_plugin_style_leaflet::options_form in views/
ip_geoloc_plugin_style_leaflet.inc - Implements options_form().
File
- views/
ip_geoloc_plugin_style_leaflet.inc, line 378
Class
Code
private function _add_marker_tooltips(&$form, $fields, &$weight) {
$form['tooltips'] = array(
'#title' => t('Marker tooltips'),
'#type' => 'fieldset',
'#collapsible' => TRUE,
'#collapsed' => empty($this->options['tooltips']['marker_tooltip']),
'#description' => t('In addition to balloons, which pop up when markers are <em>clicked</em>, you can have tooltips. A tooltip is a short text that appears when you <em>hover</em> over a marker.'),
'#weight' => $weight++,
);
$note_polygons = t('Applies to markers. If you want tooltips for lines and polygons too, please use this selector in combination with <a href="@url_leaflet_label">Leaflet Label</a>.', array(
'@url_leaflet_label' => url('http://drupal.org/project/leaflet_label'),
));
$form['tooltips']['marker_tooltip'] = array(
'#title' => t('Views field to populate tooltips'),
'#type' => 'select',
//'#multiple' => TRUE,
//'#size' => 6,
'#default_value' => $this->options['tooltips']['marker_tooltip'],
'#options' => $fields,
'#description' => t('Example: "Content: Title"') . '<br/>' . $note_polygons,
);
}