You are here

function openlayers_presets in Openlayers 6.2

Same name and namespace in other branches
  1. 6 openlayers.module \openlayers_presets()
  2. 7.2 openlayers.module \openlayers_presets()

Get Presets from DB or code, via cache.

Parameters

$reset: Boolean whether to reset or not.

Return value

Return array of presets.

3 calls to openlayers_presets()
openlayers_preset_options in ./openlayers.module
Get preset options in an array suitable for a FormAPI element.
openlayers_test_page in tests/openlayers_test.module
Callback for OpenLayers Test Page
openlayers_ui_object_list in modules/openlayers_ui/openlayers_ui.module
Menu callback for Layers.
6 string references to 'openlayers_presets'
openlayers_cck_ctools_plugin_api in modules/openlayers_cck/openlayers_cck.module
Implementation of hook_ctools_plugin_api().
openlayers_ctools_plugin_api in ./openlayers.module
Implementation of hook_ctools_plugin_api().
openlayers_example_ctools_plugin_api in docs/openlayers.api.php
CTools Registration Hook
openlayers_schema in ./openlayers.install
Implementation of hook_schema().
openlayers_test_ctools_plugin_api in tests/openlayers_test.module
Implementation of hook_ctools_plugin_api().

... See full list

File

./openlayers.module, line 573
Main OpenLayers API File

Code

function openlayers_presets($reset = FALSE) {
  ctools_include('export');
  if ($reset) {
    ctools_export_load_object_reset('openlayers_map_presets');
  }
  $presets = ctools_export_load_object('openlayers_map_presets', 'all', array());
  return $presets;
}