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