| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 //$Id: calendar_ical.views.inc,v 1.1.2.6 2009/02/16 23:46:22 karens Exp $ 3 //views_include_handlers(); 4 /** 5 * Implementation of hook_views_plugins 6 */ 7 function calendar_ical_views_plugins() { 8 $path = drupal_get_path('module', 'calendar_ical'); 9 $views_path = drupal_get_path('module', 'views'); 10 require_once "./$path/theme.inc"; 11 12 $data = array( 13 'module' => 'calendar_ical', // This just tells our themes are elsewhere. 14 'display' => array( 15 // Parents are not really displays, just needed so the files can 16 // be included. 17 'parent' => array( 18 'no ui' => TRUE, 19 'handler' => 'views_plugin_display', 20 'path' => "$views_path/plugins", 21 'parent' => '', 22 ), 23 'page' => array( 24 'no ui' => TRUE, 25 'handler' => 'views_plugin_display_page', 26 'path' => "$views_path/plugins", 27 'parent' => 'parent', 28 ), 29 'calendar_ical' => array( 30 'title' => t('iCal feed'), 31 'help' => t('Display the view as an iCal feed.'), 32 'handler' => 'calendar_plugin_display_ical', 33 'path' => "$path", 34 'parent' => 'page', 35 'uses hook menu' => TRUE, 36 'theme' => 'views_view', 37 'no ui' => TRUE, 38 'no remove' => TRUE, 39 'use ajax' => FALSE, 40 'use pager' => FALSE, 41 'accept attachments' => FALSE, 42 'admin' => t('iCal feed'), 43 'help topic' => 'display-ical', 44 ), 45 ), 46 'style' => array( 47 'parent' => array( 48 // this isn't really a display but is necessary so the file can 49 // be included. 50 'no ui' => TRUE, 51 'handler' => 'views_plugin_style', 52 'path' => "$views_path/plugins", 53 'parent' => '', 54 ), 55 'rss' => array( 56 // this isn't really a display but is necessary so the file can 57 // be included. 58 'no ui' => TRUE, 59 'handler' => 'views_plugin_style_rss', 60 'path' => "$views_path/plugins", 61 'parent' => 'parent', 62 ), 63 'ical' => array( 64 'title' => t('iCal feed'), 65 'help' => t('Generates an iCal feed from a view.'), 66 'handler' => 'calendar_plugin_style_ical', 67 'path' => "$path", 68 'theme' => 'calendar_view_ical', 69 'theme file' => 'theme.inc', 70 'theme path' => "$path", 71 'parent' => 'rss', 72 'uses row plugin' => FALSE, 73 'uses fields' => TRUE, 74 'uses row plugin' => FALSE, 75 'uses options' => TRUE, 76 'type' => 'ical', 77 'even empty' => TRUE, 78 ), 79 ), 80 ); 81 return $data; 82 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |