You are here

function openlayers_layer_type::options_form_submit in Openlayers 7.2

Submit the options_form().

_state

Parameters

array $form:

5 calls to openlayers_layer_type::options_form_submit()
openlayers_layer_type_gpx::options_form_submit in plugins/layer_types/openlayers_layer_type_gpx.inc
hook_submit() of the form.
openlayers_layer_type_image::options_form_submit in plugins/layer_types/openlayers_layer_type_image.inc
hook_submit() of the form.
openlayers_layer_type_kml::options_form_submit in plugins/layer_types/openlayers_layer_type_kml.inc
hook_submit() of the form.
openlayers_layer_type_maptiler::options_form_submit in plugins/layer_types/openlayers_layer_type_maptiler.inc
Submit the options_form().
openlayers_layer_type_tms::options_form_submit in plugins/layer_types/openlayers_layer_type_tms.inc
Submit handler for the options form.
6 methods override openlayers_layer_type::options_form_submit()
openlayers_layer_type_gpx::options_form_submit in plugins/layer_types/openlayers_layer_type_gpx.inc
hook_submit() of the form.
openlayers_layer_type_image::options_form_submit in plugins/layer_types/openlayers_layer_type_image.inc
hook_submit() of the form.
openlayers_layer_type_kml::options_form_submit in plugins/layer_types/openlayers_layer_type_kml.inc
hook_submit() of the form.
openlayers_layer_type_maptiler::options_form_submit in plugins/layer_types/openlayers_layer_type_maptiler.inc
Submit the options_form().
openlayers_layer_type_tms::options_form_submit in plugins/layer_types/openlayers_layer_type_tms.inc
Submit handler for the options form.

... See full list

File

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

Class

openlayers_layer_type
We define base classes in the core module. All other parent classes can be autoloaded through ctools.

Code

function options_form_submit($form, &$form_state) {
  $form_state['values']['data']['projection'] = array_keys($form_state['values']['data']['projection']);

  // TODO Resolutions should be processed only in layers
  // that provide a form field for it.
  $form_state['values']['data']['resolutions'] = array_map('floatval', array_values($form_state['values']['data']['resolutions']));
}