You are here

function openlayers_ui_get_style_options in Openlayers 6.2

Same name and namespace in other branches
  1. 7.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_ui_presets_form in modules/openlayers_ui/includes/openlayers_ui.presets.inc
Menu Callback for Add Preset

File

modules/openlayers_ui/openlayers_ui.module, line 671

Code

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