You are here

function leaflet_geojson_bean_bean_types in Leaflet GeoJSON 7

Same name and namespace in other branches
  1. 7.2 modules/leaflet_geojson_bean/leaflet_geojson_bean.module \leaflet_geojson_bean_bean_types()

Implements hook_bean_types().

File

modules/leaflet_geojson_bean/leaflet_geojson_bean.module, line 18
Create Leaflet Map Beans based on Views GeoJSON page displays.

Code

function leaflet_geojson_bean_bean_types() {
  $plugins = array();
  $plugin_path = drupal_get_path('module', 'leaflet_geojson_bean') . '/plugins/bean';
  $plugins['leaflet_geojson_bean'] = array(
    'label' => t('Leaflet GeoJSON'),
    'description' => t('Leaflet Map based on Views GeoJSON page.'),
    'handler' => array(
      'class' => 'LeafletGeoJSONBean',
      'parent' => 'bean',
    ),
    'path' => $plugin_path,
    'file' => 'leaflet_geojson_bean.inc',
  );
  return $plugins;
}