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