You are here

function openlayers_ui_OpenlayersControls_ctools_export_ui in Openlayers 7.3

CTools Export UI plugin definition.

File

modules/openlayers_ui/src/Plugin/export_ui/OpenlayersControls.inc, line 10
CTools Export UI plugin definition for controls.

Code

function openlayers_ui_OpenlayersControls_ctools_export_ui() {
  return array(
    'schema' => 'openlayers_controls',
    'access' => 'administer openlayers',
    'menu' => array(
      'menu prefix' => 'admin/structure/openlayers',
      'menu item' => 'controls',
      'menu title' => 'Controls',
      'menu description' => 'Administer Openlayers controls.',
    ),
    'handler' => array(
      'class' => '\\Drupal\\openlayers_ui\\UI\\OpenlayersControls',
      'file' => 'OpenlayersControls.php',
    ),
    'export' => array(
      'admin_title' => 'name',
      'admin_description' => 'description',
    ),
    'use wizard' => TRUE,
    'form info' => array(
      'order' => array(
        'start' => t('Administrative settings'),
        'type' => t('Control type'),
        'options' => t('Control type options'),
      ),
      'forms' => array(
        'start' => array(
          'form id' => 'openlayers_control_form_start',
        ),
        'type' => array(
          'form id' => 'openlayers_control_form_type',
        ),
        'options' => array(
          'form id' => 'openlayers_control_form_options',
        ),
      ),
      'wrapper' => 'openlayers_objects_ui_form_wrapper',
    ),
    'title singular' => t('control'),
    'title plural' => t('controls'),
    'title singular proper' => t('Openlayers control preset'),
    'title plural proper' => t('Openlayers control presets'),
    'strings' => array(
      'confirmation' => array(
        'add' => array(
          'success' => t('Control saved.'),
        ),
        'delete' => array(
          'success' => t('Control was deleted.'),
        ),
      ),
    ),
  );
}