function views_geojson_views_plugins in Views GeoJSON 6
Same name and namespace in other branches
- 7 views/views_geojson.views.inc \views_geojson_views_plugins()
Implements hook_views_plugins().
Adds GeoJSON feed style.
File
- views/
views_geojson.views.inc, line 13 - Views plugin definition.
Code
function views_geojson_views_plugins() {
$path = drupal_get_path('module', 'views_geojson');
return array(
'style' => array(
'views_geojson' => array(
'title' => t('GeoJSON Feed'),
'help' => t('Displays nodes in the GeoJSON data format.'),
'handler' => 'views_plugin_style_geojson',
'theme' => 'views_views_geojson_style',
'theme path' => $path . '/views',
'path' => $path . '/views',
'uses row plugin' => FALSE,
'uses fields' => TRUE,
'uses options' => TRUE,
//'uses grouping' => FALSE,
//'type' => 'feed',
'type' => 'normal',
//'help_topic' => 'style-geojson',
'even empty' => TRUE,
),
),
'argument default' => array(
'querystring' => array(
'title' => t('Bounding box from query string'),
'handler' => 'views_plugin_argument_default_bboxquery',
),
),
);
}