You are here

private function ip_geoloc_plugin_style_leaflet::_add_marker_tags in IP Geolocation Views & Maps 7

1 call to ip_geoloc_plugin_style_leaflet::_add_marker_tags()
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 354

Class

ip_geoloc_plugin_style_leaflet

Code

private function _add_marker_tags(&$form, $fields, &$weight) {
  $form['tags'] = array(
    '#title' => t('Marker tags'),
    '#type' => 'fieldset',
    '#collapsible' => TRUE,
    '#collapsed' => empty($this->options['tags']['marker_tag']),
    '#description' => t('Each marker may have a tag. A tag is a number or short text shown permanently above, below or inside the marker.'),
    '#weight' => $weight++,
  );
  $form['tags']['marker_tag'] = array(
    '#title' => t('Views field to populate tags'),
    '#type' => 'select',
    '#default_value' => $this->options['tags']['marker_tag'],
    '#options' => $fields,
    '#description' => t('Example: "Content: Title". Use "Global: View result counter" if you want to number your locations.'),
  );
  $form['tags']['tag_css_class'] = array(
    '#title' => t('Tag position and style'),
    '#type' => 'textfield',
    '#default_value' => $this->options['tags']['tag_css_class'],
    '#description' => t('The CSS class or classes applied to each tag. Tagged marker CSS classes coming with this module are <strong>tag-above-marker</strong>, <strong>tag-below-marker</strong> and <strong>tag-inside-marker</strong>. If you opted to have <em>no markers</em>, i.e. tags only, you may use <strong>tag-rounded-corners</strong> or <strong>tag-pointy-circle</strong>, which is recommended for numbers. You may also create your own CSS classes and use them here.'),
  );
}