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