function openlayers_control_form_options in Openlayers 7.3
Control options config form handler.
1 string reference to 'openlayers_control_form_options'
- openlayers_ui_OpenlayersControls_ctools_export_ui in modules/
openlayers_ui/ src/ Plugin/ export_ui/ OpenlayersControls.inc - CTools Export UI plugin definition.
File
- modules/
openlayers_ui/ src/ Plugin/ export_ui/ OpenlayersControls.inc, line 143 - CTools Export UI plugin definition for controls.
Code
function openlayers_control_form_options($form, &$form_state) {
if (($control = \Drupal\openlayers\Openlayers::load('Control', $form_state['item'])) == TRUE) {
$control
->optionsForm($form, $form_state);
$form['options']['#tree'] = TRUE;
}
return $form;
}