You are here

function openlayers_preset_options in Openlayers 6.2

Same name and namespace in other branches
  1. 7.2 openlayers.module \openlayers_preset_options()

Get preset options in an array suitable for a FormAPI element.

Parameters

$reset: Boolean whether to reset or not.

Return value

Return array of formatted data.

5 calls to openlayers_preset_options()
openlayers_cck_field_formatter_info in modules/openlayers_cck/openlayers_cck.module
Implementation of hook_field_formatter_info().
openlayers_cck_theme in modules/openlayers_cck/openlayers_cck.module
Implementation of hook_theme().
openlayers_cck_widget_settings in modules/openlayers_cck/openlayers_cck.module
Implementation of hook_widget_settings().
openlayers_ui_admin_settings in modules/openlayers_ui/includes/openlayers_ui.admin.inc
Menu callback; displays the openlayers module settings page.
openlayers_views_style_map::options_form in modules/openlayers_views/views/openlayers_views_style_map.inc
Options form

File

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

Code

function openlayers_preset_options($reset = FALSE) {
  $presets = openlayers_presets($reset);
  $options = array();
  foreach ($presets as $preset) {
    $options[$preset->name] = $preset->title;
  }
  return $options;
}