You are here

function leaflet_views_views_plugins in Leaflet 7

Define leaflet views style.

Implements hook_views_plugins().

File

leaflet_views/leaflet_views.views.inc, line 13
Leaflet maps views integration.

Code

function leaflet_views_views_plugins() {
  $plugins = array(
    'module' => 'leaflet_views',
    'style' => array(
      'leaflet' => array(
        'title' => t('Leaflet Map'),
        'help' => t('Displays a View as a Leaflet map.'),
        'path' => drupal_get_path('module', 'leaflet_views'),
        'handler' => 'leaflet_views_plugin_style',
        'theme' => 'leaflet_map',
        'uses fields' => TRUE,
        'uses row plugin' => FALSE,
        'uses options' => TRUE,
        'uses grouping' => FALSE,
        'type' => 'normal',
        'even empty' => FALSE,
      ),
    ),
  );
  return $plugins;
}