You are here

function views_geojson_views_data in Views GeoJSON 7

Same name and namespace in other branches
  1. 8 views_geojson.views.inc \views_geojson_views_data()
  2. 6 views/views_geojson.views.inc \views_geojson_views_data()

Implements hook_views_data().

Adds bounding box contextual filter.

File

views/views_geojson.views.inc, line 60
Views plugin definition.

Code

function views_geojson_views_data() {
  $data = array();
  $data['views']['bbox_argument'] = array(
    'group' => t('Custom'),
    'real field' => 'bbox_argument',
    'title' => t('Bounding box'),
    'help' => t('Filter locations within a bounding box.'),
    'argument' => array(
      'handler' => 'views_geojson_bbox_argument',
    ),
  );
  return $data;
}