public
Fork of bendiken/drupal-exhibit
Description: Drupal module that displays structured data in the form of rich visualizations and faceted browsing.
Homepage: http://drupal.org/project/exhibit
Clone URL: git://github.com/jhuckabee/drupal-exhibit.git
drupal-exhibit / exhibit.views.inc
100644 42 lines (38 sloc) 1.2 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
// $Id$
 
//////////////////////////////////////////////////////////////////////////////
// Views API hooks
 
/**
 * Implementation of hook_views_plugins().
 */
function exhibit_views_plugins() {
  return array(
    // Style plugins
    'style' => array(
      'exhibit_json' => array(
        'title' => t('Exhibit JSON'),
        'help' => t('Generates an Exhibit JSON feed from a view.'),
        'handler' => 'views_plugin_style_exhibit_json',
        'path' => drupal_get_path('module', 'exhibit') .'/contrib/exhibit_views',
        'uses row plugin' => TRUE,
        'uses fields' => TRUE,
        'uses options' => TRUE,
        'type' => 'feed',
        'help topic' => 'style-exhibit-json',
      ),
    ),
 
    // Row plugins
    'row' => array(
      'node_exhibit' => array(
        'title' => t('Fields (Exhibit)'),
        'help' => t('Outputs the fields as an Exhibit JSON object.'),
        'handler' => 'views_plugin_row_fields_exhibit',
        'path' => drupal_get_path('module', 'exhibit') .'/contrib/exhibit_views',
        'uses fields' => TRUE,
        'uses options' => FALSE,
        'type' => 'feed',
        'help topic' => 'style-node-exhibit',
      ),
    ),
  );
}