You are here

function openlayers_views_views_plugins in Openlayers 6

Same name and namespace in other branches
  1. 6.2 modules/openlayers_views/views/openlayers_views.views.inc \openlayers_views_views_plugins()
  2. 7.3 modules/openlayers_views/views/openlayers_views.views.inc \openlayers_views_views_plugins()
  3. 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',
    'style' => array(
      'openlayers_views' => array(
        'title' => t('OpenLayers'),
        'help' => t('Displays nodes as an OpenLayers map.'),
        'handler' => 'openlayers_views_style_map',
        'theme' => 'openlayers_views_map',
        'theme file' => 'openlayers_views.views.theme.inc',
        'theme path' => drupal_get_path('module', 'openlayers_views') . '/views',
        'path' => drupal_get_path('module', 'openlayers_views') . '/views',
        'uses fields' => TRUE,
        'uses row plugin' => TRUE,
        'uses options' => TRUE,
        'uses grouping' => TRUE,
        'type' => 'normal',
        'even empty' => TRUE,
      ),
    ),
  );
}