You are here

function openlayers_ui_get_style_options in Openlayers 7.2

Same name and namespace in other branches
  1. 6.2 modules/openlayers_ui/openlayers_ui.module \openlayers_ui_get_style_options()

Get style options.

Return value

Array of style options suitable for use in a FormAPI element.

1 call to openlayers_ui_get_style_options()
openlayers_maps_ui::edit_form in modules/openlayers_ui/plugins/export_ui/openlayers_maps_ui.class.php
Provide the actual editing form.

File

modules/openlayers_ui/openlayers_ui.module, line 284
Main Drupal module file for the OpenLayers UI module

Code

function openlayers_ui_get_style_options() {
  $options = array();
  foreach (openlayers_styles() as $key => $style) {
    $options[$key] = $style->title;
  }
  return $options;
}