| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * $event 4 * An array with the following information about each event: 5 * 6 * $event['uid'] - a unique id for the event (usually the url). 7 * $event['summary'] - the name of the event. 8 * $event['start'] - the formatted start date of the event. 9 * $event['end'] - the formatted end date of the event. 10 * $event['rrule'] - the RRULE of the event, if any. 11 * $event['timezone'] - the formatted timezone name of the event, if any. 12 * $event['url'] - the url for the event. 13 * $event['location'] - the name of the event location, or a vvenue location id. 14 * $event['description'] - a description of the event. 15 * $event['alarm'] - an optional array of alarm values. 16 * @see date-valarm.tpl.php. 17 * 18 * If you are editing this file, remember that all output lines generated by it 19 * must end with DOS-style \r\n line endings, and not Unix-style \n, in order to 20 * comply with the iCal spec: http://tools.ietf.org/html/rfc5545#section-3.1. 21 **/ 22 23 print "BEGIN:VEVENT\r\n"; 24 print "UID:" . $event['uid'] . "\r\n"; 25 print "SUMMARY:" . $event['summary'] . "\r\n"; 26 print "DTSTAMP:" . $site_timezone_utc . "Z\r\n"; 27 print "DTSTART;" . $event['timezone'] . $event['start'] . "\r\n"; 28 if (!empty($event['end'])): 29 print "DTEND;" . $event['timezone'] . $event['end'] . "\r\n"; 30 endif; 31 if (!empty($event['rrule'])): 32 print $event['rrule'] . "\r\n"; 33 endif; 34 if (!empty($event['url'])): 35 print "URL;VALUE=URI:" . $event['url'] . "\r\n"; 36 endif; 37 if (!empty($event['location'])): 38 print "LOCATION:" . $event['location'] . "\r\n"; 39 endif; 40 if (!empty($event['description'])): 41 print "DESCRIPTION:" . $event['description'] . "\r\n"; 42 endif; 43 print "END:VEVENT\r\n";
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 |