You are here

function views_json_views_style_plugins in Views Datasource 5

Implementation of hook_views_style_plugins

Return value

array with style plugin declarations.

File

./views_json.module, line 12
views_json.module - provides Views plugin for rendering node content as JSON.

Code

function views_json_views_style_plugins() {
  return array(
    'views_json_simple' => array(
      'name' => t('Views JSON: Simple JSON data document'),
      'theme' => 'views_json_simple',
      'needs_table_header' => TRUE,
      'needs_fields' => TRUE,
      'even_empty' => TRUE,
    ),
    'views_json_exhibit' => array(
      'name' => t('Views JSON: MIT Simile/Exhibit JSON data document'),
      'theme' => 'views_json_exhibit',
      'needs_table_header' => TRUE,
      'needs_fields' => TRUE,
      'even_empty' => TRUE,
    ),
  );
}