You are here

function views_geojson_views_data in Views GeoJSON 6

Same name and namespace in other branches
  1. 8 views_geojson.views.inc \views_geojson_views_data()
  2. 7 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 66
Views plugin definition.

Code

function views_geojson_views_data() {
  $data = array();
  $data['node']['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;
}