function views_json_views_plugins in Views Datasource 7
Same name and namespace in other branches
- 6 views_json.views.inc \views_json_views_plugins()
Implements hook_views_plugins().
File
- views/
views_json.views.inc, line 13 - Views style plugin to render nodes in the JSON data format.
Code
function views_json_views_plugins() {
$formats = views_json_views_formats();
$additional_themes = array();
foreach ($formats as $format => $description) {
$additional_themes['views_views_json_style_' . $format] = 'style';
}
$path = drupal_get_path('module', 'views_json') . '/views';
return array(
'module' => 'views_json',
'style' => array(
'views_json' => array(
'title' => t('JSON data document'),
'path' => $path . '/plugins',
'help' => t('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' => $additional_themes,
'uses row plugin' => FALSE,
'uses fields' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
'help_topic' => 'style-json',
'even empty' => TRUE,
),
),
);
}