function openlayers_views_views_plugins in Openlayers 6.2
Same name and namespace in other branches
- 6 modules/openlayers_views/views/openlayers_views.views.inc \openlayers_views_views_plugins()
- 7.3 modules/openlayers_views/views/openlayers_views.views.inc \openlayers_views_views_plugins()
- 7.2 modules/openlayers_views/views/openlayers_views.views.inc \openlayers_views_views_plugins()
Implementation of hook_views_plugins().
File
- modules/
openlayers_views/ views/ openlayers_views.views.inc, line 13 - This file holds main views functions for the openlayers_views module.
Code
function openlayers_views_views_plugins() {
return array(
'module' => 'openlayers_views',
'display' => array(
'openlayers' => array(
'title' => t('OpenLayers Data'),
'help' => t('Data layer for OpenLayers maps.'),
'handler' => 'openlayers_views_plugin_display_openlayers',
'path' => drupal_get_path('module', 'openlayers_views') . '/views',
'uses hook menu' => FALSE,
'use ajax' => FALSE,
'use pager' => FALSE,
'accept attachments' => FALSE,
'admin' => t('OpenLayers Data'),
),
),
'style' => array(
'openlayers_map' => array(
'title' => t('OpenLayers Map'),
'help' => t('Displays a View as an OpenLayers map.'),
'handler' => 'openlayers_views_style_map',
'theme' => 'openlayers_views_map',
'theme path' => drupal_get_path('module', 'openlayers_views') . '/views',
'path' => drupal_get_path('module', 'openlayers_views') . '/views',
'uses fields' => FALSE,
'uses row plugin' => FALSE,
'uses options' => TRUE,
'uses grouping' => FALSE,
'type' => 'normal',
'even empty' => TRUE,
),
'openlayers_data' => array(
'title' => t('OpenLayers Data'),
'help' => t('Provides Data to Power an OpenLayers map.'),
'handler' => 'openlayers_views_style_data',
'theme' => 'openlayers_views_data',
'theme path' => drupal_get_path('module', 'openlayers_views') . '/views',
'path' => drupal_get_path('module', 'openlayers_views') . '/views',
'uses fields' => TRUE,
'uses row plugin' => FALSE,
'uses options' => TRUE,
'uses grouping' => TRUE,
'type' => 'openlayers',
'even empty' => TRUE,
),
),
);
}