Commit 227650e3 authored by Robert Rollins's avatar Robert Rollins

Updated the README, added new tests, implemented hook_help().

parent d2491d2e
This diff is collapsed.
......@@ -185,8 +185,7 @@ function date_ical_libraries_info() {
function date_ical_help($path, $arg) {
switch ($path) {
case 'admin/help#date_ical':
// Return a line-break version of the module README.txt
return check_markup(file_get_contents(dirname(__FILE__) . "/README.txt"));
return '<pre>' . file_get_contents(drupal_get_path('module', 'date_ical') . "/README.txt") . '</pre>';
}
}
......
......@@ -43,11 +43,11 @@ DESCRIPTION:This is a standard 2-hour event in America/New_York.
END:VEVENT
BEGIN:VEVENT
SUMMARY:Broken Event (Central Standard Time)
SUMMARY:Central Standard Time Event
DTSTART;TZID=Central Standard Time:20131009T190000
DTEND;TZID=Central Standard Time:20131009T210000
UID:date_ical_basic_test03
DESCRIPTION:This event uses a deprecated TZID, Central Standard Time, and should be treated as UTC.
DESCRIPTION:This event uses a Windows TZID, Central Standard Time, and will be parsed correctly only in Date iCal 3.1+.
END:VEVENT
BEGIN:VEVENT
......@@ -124,4 +124,12 @@ UID:date_ical_basic_test0C
DESCRIPTION:This event has several escaped characters right here:\,\;\\\n\NThis text should be 2 lines down from the rest.
END:VEVENT
BEGIN:VEVENT
SUMMARY:Bad TZID Event
DTSTART;TZID=Fake TZID:20131009T190000
DTEND;TZID=Fake TZID:20131009T210000
UID:date_ical_basic_test0D
DESCRIPTION:This event uses a fake TZID and should throw the "not a valid timezone" warning at import time, and be treated as UTC.
END:VEVENT
END:VALENDAR
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment