Version 7.x-2.x-dev
===================
+- Follow up to Issue #1302052 by benjifisher, More clean up of ical line endings.
- Issue #1388174 by travist, Remove redundant use of date_default_timezone().
- Issue #1388586 by Moloc, Don't use check_plain() on system messages with links.
- Issue #1302052 by benjifisher, penguin25, and helmo, Fix linespace ending problems in ical files.
<?php
-// $Id$
/**
* $alarm
* An array with the following information about each alarm:
endif;
if ($alarm['action'] == 'EMAIL'):
print "ATTENDEE:MAILTO:" . $alarm['email'] . "\r\n";
- print "SUMMARY:" . $alarm['summary'] . "\n";
+ print "SUMMARY:" . $alarm['summary'] . "\r\n";
endif;
print "DESCRIPTION:" . $alarm['description'] . "\r\n";
-print "END:VALARM\r\n";
\ No newline at end of file
+print "END:VALARM\r\n";
<?php
-// $Id$
/**
* $calname
* The name of the calendar.
print "X-WR-CALNAME;VALUE=TEXT:$calname\r\n";
}
print "PRODID:-//Drupal iCal API//EN\r\n";
-// Note that theme('date_event') already has the right line endings and needs no more.
+// Note that theme('date_vevent') already has the right line endings and needs no more.
foreach($events as $event):
print theme('date_vevent', $event);
endforeach;
<?php
-// $Id$
/**
* $event
* An array with the following information about each event:
* If you are editing this file, remember that all output lines generated by it
* must end with DOS-style \r\n line endings, and not Unix-style \n, in order to
* be compliant with the iCal spec (see http://tools.ietf.org/html/rfc5545#section-3.1)
-
- */
+ **/
$date = date_now('UTC');
$current_date = !empty($event['current_date']) ? $event['current_date'] : $date->format(DATE_FORMAT_ICAL);
print "BEGIN:VEVENT\r\n";
if (!empty($event['description'])) {
print "DESCRIPTION:" . $event['description'] . "\r\n";
}
-print "END:VEVENT\r\n";
\ No newline at end of file
+print "END:VEVENT\r\n";