function openlayers_views_style_map::options_form in Openlayers 7.2
Same name and namespace in other branches
- 6.2 modules/openlayers_views/views/openlayers_views_style_map.inc \openlayers_views_style_map::options_form()
- 6 modules/openlayers_views/views/openlayers_views_style_map.inc \openlayers_views_style_map::options_form()
Options form
Overrides views_plugin_style::options_form
File
- modules/
openlayers_views/ views/ openlayers_views_style_map.inc, line 37 - This file holds style plugin for OpenLayers Views
Class
- openlayers_views_style_map
- @class Extension of the Views Plugin Syle for OpenLayers
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
// Map
$form['map'] = array(
'#type' => 'select',
'#title' => t('Map'),
'#description' => t('This is map that will be used to render the view.'),
'#options' => openlayers_map_options(),
'#default_value' => $this->options['map'] ? $this->options['map'] : variable_get('openlayers_default_map', 'default'),
);
}