You are here

function openlayers_content_types_openlayers_content_type_edit_form in Openlayers 7.3

Define the settings.

File

modules/openlayers_content_types/plugins/content_types/openlayers.inc, line 34

Code

function openlayers_content_types_openlayers_content_type_edit_form($form, &$form_state) {
  $conf = $form_state['conf'] + $form_state['plugin']['defaults'];

  // Hide title handling.
  $form['override_title']['#access'] = FALSE;
  $form['override_title_text']['#access'] = FALSE;
  $form['override_title_heading']['#access'] = FALSE;
  $form['override_title_markup']['#access'] = FALSE;
  $form['conf']['#tree'] = TRUE;
  $form['conf']['map'] = array(
    '#type' => 'select',
    '#title' => t('Map'),
    '#options' => \Drupal\openlayers\Openlayers::loadAllAsOptions('Map'),
    '#default_value' => $conf['map'],
  );
  return $form;
}