views_json.views.inc in Views Datasource 6
Views style plugin to render nodes in the JSON data format.
See also
File
views_json.views.incView source
<?php
/**
* @file
* Views style plugin to render nodes in the JSON data format.
*
* @see views_plugin_style_json.inc
* @ingroup views_plugins
*/
/**
* Implementation of hook_views_plugin().
*/
function views_json_views_plugins() {
$path = drupal_get_path('module', 'views_json');
return array(
'module' => 'views_json',
'style' => array(
// Declare the views_json style plugin.
'views_json' => array(
'title' => 'JSON data document',
'path' => $path,
'help' => 'Displays nodes in the JSON data format.',
'handler' => 'views_plugin_style_json',
'theme' => 'views_views_json_style',
'theme file' => 'views_views_json_style.theme.inc',
'theme path' => $path . '/theme',
'additional themes' => array(
'views_views_json_style_simple' => 'style',
'views_views_json_style_exhibit' => 'style',
),
'uses row plugin' => FALSE,
'uses fields' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
'help_topic' => 'style-json',
'even empty' => TRUE,
),
),
);
}
Functions
Name![]() |
Description |
---|---|
views_json_views_plugins | Implementation of hook_views_plugin(). |