You are here

function openlayers_layer_types in Openlayers 7.2

Same name and namespace in other branches
  1. 6.2 openlayers.module \openlayers_layer_types()

Get all layer types.

Parameters

$reset: Boolean whether to reset cache or not.

Return value

Array of layer type info.

6 calls to openlayers_layer_types()
openlayers_get_layer_object in ./openlayers.module
Get layer object
openlayers_layers_ui::edit_form in modules/openlayers_ui/plugins/export_ui/openlayers_layers_ui.class.php
Provide the actual editing form.
openlayers_layers_ui::edit_form_validate in modules/openlayers_ui/plugins/export_ui/openlayers_layers_ui.class.php
Validate callback for the edit form.
openlayers_layers_ui::list_build_row in modules/openlayers_ui/plugins/export_ui/openlayers_layers_ui.class.php
Build a row based on the item.
openlayers_ui_layers_settings in modules/openlayers_ui/includes/openlayers_ui.layers.inc
Layer-wide-settings form

... See full list

1 string reference to 'openlayers_layer_types'
openlayers_ctools_plugin_api in ./openlayers.module
Implements hook_ctools_plugin_api().

File

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

Code

function openlayers_layer_types($reset = FALSE, $include_disabled = FALSE) {
  ctools_include('plugins');
  $layers = ctools_get_plugins('openlayers', 'layer_types');
  if (!$include_disabled) {
    $layers = array_filter($layers, 'openlayers_object_enabled');
  }
  return array_filter($layers, 'openlayers_layer_definition_check');
}