leaflet_views.views.inc 757 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * @file
  4. * Leaflet maps views integration.
  5. */
  6. /**
  7. * Define leaflet views style.
  8. *
  9. * Implements hook_views_plugins().
  10. */
  11. function leaflet_views_views_plugins() {
  12. $plugins = array(
  13. 'module' => 'leaflet_views',
  14. 'style' => array(
  15. 'leaflet' => array(
  16. 'title' => t('Leaflet Map'),
  17. 'help' => t('Displays a View as a Leaflet map.'),
  18. 'path' => drupal_get_path('module', 'leaflet_views'),
  19. 'handler' => 'leaflet_views_plugin_style',
  20. 'theme' => 'leaflet-map',
  21. 'uses fields' => TRUE,
  22. 'uses row plugin' => FALSE,
  23. 'uses options' => TRUE,
  24. 'uses grouping' => FALSE,
  25. 'type' => 'normal',
  26. 'even empty' => FALSE,
  27. ),
  28. ),
  29. );
  30. return $plugins;
  31. }