Skip to content

Commit

Permalink
Pass ICS Feed ID to event list
Browse files Browse the repository at this point in the history
Pass ICS Feed ID to event list to support data extensions to ICS Feed
  • Loading branch information
cmcramer committed Oct 20, 2016
1 parent 06b542d commit e245e2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ public function getFeedEvents($start_date, $end_date) {
foreach ( $events as $event ) {
// translate iCal schema into CalendarAnnouncement schema (datetime + title/content)
$feedevent = new CalendarAnnouncement;
//pass ICS feed ID to event list
$feedevent->ID = 'ICS_'.$feed->ID;
$feedevent->Title = $event['SUMMARY'];
if ( isset($event['DESCRIPTION']) ) {
$feedevent->Content = $event['DESCRIPTION'];
Expand Down

0 comments on commit e245e2b

Please sign in to comment.