You are here

function openlayers_styles_get_info in Openlayers 6

Get Styles Info

Wrapper around styles info hook

Parameters

$reset: Boolean whether to reset cache or not

Return value

array of styles info

Related topics

2 calls to openlayers_styles_get_info()
openlayers_presets_ui_presets_manage_add in modules/openlayers_presets_ui/includes/openlayers_presets_ui.ui.inc
Menu Callback for Add Preset
_openlayers_styles_process in includes/openlayers.render.inc
Process Styles

File

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

Code

function openlayers_styles_get_info($reset = FALSE) {
  static $info = NULL;

  // If empty or reset, get info
  if ($info === NULL || $reset == TRUE) {
    $info = module_invoke_all('openlayers_styles_info');
  }
  return $info;
}