class openlayers_plus_behavior_themeregion in OpenLayers Plus 7.3
Same name and namespace in other branches
- 7 behaviors/openlayers_plus_behavior_themeregion.inc \openlayers_plus_behavior_themeregion
- 7.2 behaviors/openlayers_plus_behavior_themeregion.inc \openlayers_plus_behavior_themeregion
@file Inserts an entire Drupal Theme region on top of the map as a control.
Hierarchy
- class \openlayers_behavior
Expanded class hierarchy of openlayers_plus_behavior_themeregion
File
- behaviors/
openlayers_plus_behavior_themeregion.inc, line 7 - Inserts an entire Drupal Theme region on top of the map as a control.
View source
class openlayers_plus_behavior_themeregion extends openlayers_behavior {
/**
* Override of options_init().
*/
public function options_init() {
$options = array();
return $options;
}
/**
* Override of options_form().
*/
public function options_form($defaults = array()) {
return array(
'regions' => array(
'#type' => 'checkboxes',
'#title' => t('Select Regions'),
'#options' => system_region_list(variable_get('theme_default'), REGIONS_ALL),
'#default_value' => isset($defaults['regions']) ? $defaults['regions'] : array(),
'#description' => t('Select the region(s) you want to move in the map. You will have to edit the CSS to make this work nicely with more than 1 region.'),
),
'prefix' => array(
'#type' => 'textfield',
'#title' => t('CSS Prefix'),
'#default_value' => isset($defaults['prefix']) ? $defaults['prefix'] : '#',
'#description' => t('Prefix for the CSS identifier of the Regions div in your theme.'),
),
'suffix' => array(
'#type' => 'textfield',
'#title' => t('CSS Suffix'),
'#default_value' => isset($defaults['suffix']) ? $defaults['suffix'] : '',
'#description' => t('Suffix for the CSS identifier of the Regions div in your theme.'),
),
);
}
/**
* Render.
*/
public function render(&$map) {
drupal_add_js(drupal_get_path('module', 'openlayers_plus') . '/behaviors/openlayers_plus_behavior_themeregion.js');
return $this->options;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
openlayers_behavior:: |
property | |||
openlayers_behavior:: |
function | 17 | ||
openlayers_behavior:: |
function | |||
openlayers_plus_behavior_themeregion:: |
public | function |
Override of options_form(). Overrides openlayers_behavior:: |
|
openlayers_plus_behavior_themeregion:: |
public | function |
Override of options_init(). Overrides openlayers_behavior:: |
|
openlayers_plus_behavior_themeregion:: |
public | function |
Render. Overrides openlayers_behavior:: |