function openlayers_projection_form_start in Openlayers 7.3
Projection base config form handler.
File
- modules/
openlayers_ui/ src/ Plugin/ export_ui/ OpenlayersProjections.inc, line 65 - CTools Export UI plugin definition for projections.
Code
function openlayers_projection_form_start($form, &$form_state) {
$class = new \Drupal\openlayers_ui\UI\OpenlayersProjections();
$class
->init($form_state['plugin']);
$class
->edit_form($form, $form_state);
$form['definition'] = array(
'#type' => 'textarea',
'#title' => t('Projection definition'),
'#rows' => '10',
'#default_value' => isset($form_state['item']->definition) ? $form_state['item']->definition : '',
);
return $form;
}