| 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 |
}
|