You are here

function openlayers_ui_OpenlayersComponents_ctools_export_ui in Openlayers 7.3

CTools Export UI plugin definition.

File

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

Code

function openlayers_ui_OpenlayersComponents_ctools_export_ui() {
  return array(
    'schema' => 'openlayers_components',
    'access' => 'administer openlayers',
    'menu' => array(
      'menu prefix' => 'admin/structure/openlayers',
      'menu item' => 'components',
      'menu title' => 'Components',
      'menu description' => 'Administer Openlayers components.',
    ),
    'handler' => array(
      'class' => '\\Drupal\\openlayers_ui\\UI\\OpenlayersComponents',
      'file' => 'OpenlayersComponents.php',
    ),
    'export' => array(
      'admin_title' => 'name',
      'admin_description' => 'description',
    ),
    'use wizard' => TRUE,
    'form info' => array(
      'order' => array(
        'start' => t('Administrative settings'),
        'type' => t('Component type'),
        'options' => t('Component type options'),
      ),
      'forms' => array(
        'start' => array(
          'form id' => 'openlayers_component_form_start',
        ),
        'type' => array(
          'form id' => 'openlayers_component_form_type',
        ),
        'options' => array(
          'form id' => 'openlayers_component_form_options',
        ),
      ),
      'wrapper' => 'openlayers_objects_ui_form_wrapper',
    ),
    'title singular' => t('component'),
    'title plural' => t('components'),
    'title singular proper' => t('Openlayers component preset'),
    'title plural proper' => t('Openlayers component presets'),
    'strings' => array(
      'confirmation' => array(
        'add' => array(
          'success' => t('Component saved.'),
        ),
        'delete' => array(
          'success' => t('Component was deleted.'),
        ),
      ),
    ),
  );
}