function openlayers_dev_dialog_form_clean in Openlayers 7.3
Prepares a form structure to be added to a development dialog.
Removes all JS related stuff.
Parameters
array $form: The form array to prepare.
1 call to openlayers_dev_dialog_form_clean()
- openlayers_dev_dialog_form in src/
Plugin/ Source/ GeoJSON/ forms.inc - Form callback handler to prepare the developer dialog form.
File
- src/
Plugin/ Source/ GeoJSON/ forms.inc, line 39 - Provides forms for the GeoJSON Source.
Code
function openlayers_dev_dialog_form_clean(array &$form) {
foreach (element_children($form) as $key) {
unset($form[$key]['#states'], $form[$key]['#attached']);
openlayers_dev_dialog_form_clean($form[$key]);
}
}