function openlayers_ui_OpenlayersSources_ctools_export_ui in Openlayers 7.3
CTools Export UI plugin definition.
File
- modules/
openlayers_ui/ src/ Plugin/ export_ui/ OpenlayersSources.inc, line 10 - CTools Export UI plugin definition for sources.
Code
function openlayers_ui_OpenlayersSources_ctools_export_ui() {
return array(
'schema' => 'openlayers_sources',
'access' => 'administer openlayers',
'menu' => array(
'menu prefix' => 'admin/structure/openlayers',
'menu item' => 'sources',
'menu title' => 'Sources',
'menu description' => 'Administer Openlayers sources.',
),
'handler' => array(
'class' => '\\Drupal\\openlayers_ui\\UI\\OpenlayersSources',
'file' => 'OpenlayersSources.php',
),
'export' => array(
'admin_title' => 'name',
'admin_description' => 'description',
),
'use wizard' => TRUE,
'form info' => array(
'order' => array(
'start' => t('Administrative settings'),
'type' => t('Source type'),
'options' => t('Source type options'),
),
'forms' => array(
'start' => array(
'form id' => 'openlayers_source_form_start',
),
'type' => array(
'form id' => 'openlayers_source_form_type',
),
'options' => array(
'form id' => 'openlayers_source_form_options',
),
),
'wrapper' => 'openlayers_objects_ui_form_wrapper',
),
'title singular' => t('source'),
'title plural' => t('sources'),
'title singular proper' => t('Openlayers source preset'),
'title plural proper' => t('Openlayers sources presets'),
'strings' => array(
'confirmation' => array(
'add' => array(
'success' => t('Source saved.'),
),
'delete' => array(
'success' => t('Source was deleted.'),
),
),
),
);
}