/[drupal]/contributions/modules/exhibit/exhibit.views.inc
ViewVC logotype

Contents of /contributions/modules/exhibit/exhibit.views.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Thu Jan 8 12:04:48 2009 UTC (10 months, 2 weeks ago) by arto
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-BETA1, HEAD
File MIME type: text/x-php
Merged latest changes from http://github.com/jhuckabee/drupal-exhibit (04d7fc0) by jhuckabee.

Changelog (Exhibit Views):
- Added handling for taxonomy terms added through relationships.
- Added explicit isset() predicates to avoid E_STRICT notices.
- Replaced the exhibit_views module with native Views2 integration.
- Automatically add Views created Exhibit Feeds to Feed lists.
- Updated documentation with new Views2 usage.
1 <?php
2 // $Id$
3
4 //////////////////////////////////////////////////////////////////////////////
5 // Views API hooks
6
7 /**
8 * Implementation of hook_views_plugins().
9 */
10 function exhibit_views_plugins() {
11 return array(
12 // Style plugins
13 'style' => array(
14 'exhibit_json' => array(
15 'title' => t('Exhibit JSON'),
16 'help' => t('Generates an Exhibit JSON feed from a view.'),
17 'handler' => 'views_plugin_style_exhibit_json',
18 'path' => drupal_get_path('module', 'exhibit') .'/contrib/exhibit_views',
19 'uses row plugin' => TRUE,
20 'uses fields' => TRUE,
21 'uses options' => TRUE,
22 'type' => 'feed',
23 'help topic' => 'style-exhibit-json',
24 ),
25 ),
26
27 // Row plugins
28 'row' => array(
29 'node_exhibit' => array(
30 'title' => t('Fields (Exhibit)'),
31 'help' => t('Outputs the fields as an Exhibit JSON object.'),
32 'handler' => 'views_plugin_row_fields_exhibit',
33 'path' => drupal_get_path('module', 'exhibit') .'/contrib/exhibit_views',
34 'uses fields' => TRUE,
35 'uses options' => FALSE,
36 'type' => 'feed',
37 'help topic' => 'style-node-exhibit',
38 ),
39 ),
40 );
41 }

  ViewVC Help
Powered by ViewVC 1.1.2