-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathffpc.views.inc
48 lines (47 loc) · 1.37 KB
/
ffpc.views.inc
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
43
44
45
46
47
48
<?php
/**
* @file
* Views plugins for FileField Podcaster.
*
* Much of the output here is based on the Apple Podcast standard.
* @see http://www.apple.com/itunes/store/podcaststechspecs.html
*
* Note: We need a custom style plugin because the default RSS plugin does not
* permit additional elements to be added to the feed.
*/
/**
* Implements hook_views_plugins().
*/
function ffpc_views_plugins() {
return array(
'module' => 'ffpc',
'style' => array(
'podcast' => array(
'title' => t('Podcast Feed'),
'help' => t('Generates Podcast Feed from a view.'),
'handler' => 'ffpc_plugin_style_podcast',
'theme' => 'ffpc_view_podcast_feed',
'uses row plugin' => TRUE,
'uses options' => TRUE,
'uses fields' => TRUE,
'uses grouping' => FALSE,
'even empty' => TRUE,
'type' => 'feed',
'path' => drupal_get_path('module', 'ffpc'),
),
),
'row' => array(
'podcast_node' => array(
'title' => t('Podcast Episode'),
'help' => t('Display the node as a Podcast Episode.'),
'handler' => 'ffpc_plugin_row_podcast',
'path' => drupal_get_path('module', 'ffpc'),
'theme' => 'views_view_row_rss',
'base' => array('node'), // only works with 'node' as base.
'uses options' => TRUE,
'type' => 'feed',
'uses fields' => TRUE,
),
),
);
}