| 1 |
<?php
|
| 2 |
|
| 3 |
/*
|
| 4 |
* Much of the output here is based on the Apple Podcast standard. Details
|
| 5 |
* can be found here:
|
| 6 |
* http://www.apple.com/itunes/store/podcaststechspecs.html
|
| 7 |
*
|
| 8 |
* Note: We need a custom style plugin because the default RSS plugin does
|
| 9 |
* not permit additional elements to be added to the feed.
|
| 10 |
*/
|
| 11 |
|
| 12 |
function ffpc_views_plugins() {
|
| 13 |
return array(
|
| 14 |
'module' => 'ffpc',
|
| 15 |
'style' => array(
|
| 16 |
'podcast' => array(
|
| 17 |
'title' => t('Podcast Feed'),
|
| 18 |
'help' => t('Generates Podcast Feed from a view.'),
|
| 19 |
'handler' => 'ffpc_plugin_style_podcast',
|
| 20 |
'theme' => 'ffpc_view_podcast_feed',
|
| 21 |
'uses row plugin' => TRUE,
|
| 22 |
'uses options' => TRUE,
|
| 23 |
'type' => 'feed',
|
| 24 |
'parent' => 'rss',
|
| 25 |
),
|
| 26 |
),
|
| 27 |
'row' => array(
|
| 28 |
'podcast' => array(
|
| 29 |
'title' => t('Podcast Episode'),
|
| 30 |
'help' => t('Display the node as a Podcast Episode.'),
|
| 31 |
'handler' => 'ffpc_plugin_row_podcast',
|
| 32 |
'uses fields' => TRUE,
|
| 33 |
'type' => 'feed',
|
| 34 |
'parent' => 'node_rss',
|
| 35 |
'uses options' => TRUE,
|
| 36 |
),
|
| 37 |
),
|
| 38 |
);
|
| 39 |
}
|