function openlayers_styles in Openlayers 7.2
Same name and namespace in other branches
- 6.2 openlayers.module \openlayers_styles()
Get all openlayers styles.
Parameters
$reset: Boolean whether to reset cache or not.
Return value
Array of all available styles.
3 calls to openlayers_styles()
- openlayers_style_load in ./
openlayers.module - Load a style object by name.
- openlayers_ui_get_style_options in modules/
openlayers_ui/ openlayers_ui.module - Get style options.
- _openlayers_styles_process in includes/
openlayers.render.inc - Process Styles
7 string references to 'openlayers_styles'
- openlayers_ctools_plugin_api in ./
openlayers.module - Implements hook_ctools_plugin_api().
- openlayers_example_ctools_plugin_api in docs/
openlayers.api.php - CTools Registration Hook
- openlayers_object_delete in ./
openlayers.module - Delete an object from the database.
- openlayers_schema in ./
openlayers.install - Implements hook_schema().
- openlayers_style_save in ./
openlayers.module - Save style.
File
- ./
openlayers.module, line 715 - Main OpenLayers API File
Code
function openlayers_styles($reset = FALSE, $include_disabled = FALSE) {
ctools_include('export');
if ($reset) {
ctools_export_load_object_reset('openlayers_styles');
}
$styles = ctools_export_load_object('openlayers_styles', 'all', array());
if (!$include_disabled) {
$styles = array_filter($styles, 'openlayers_object_enabled');
}
return $styles;
}