throw new Exception(_m('No end date for event.'));
}
+ // location is optional
+ $location = null;
+ $location_object = $happeningObj->element->getElementsByTagName('location');
+ if($location_object->length > 0) {
+ $location = $location_object->item(0)->nodeValue;
+ }
+
$notice = null;
switch ($activity->verb) {
$dtstart->item(0)->nodeValue,
$dtend->item(0)->nodeValue,
$happeningObj->title,
- null,
+ $location,
$happeningObj->summary,
null,
$options);
array('xmlns' => 'urn:ietf:params:xml:ns:xcal'),
common_date_iso8601($happening->end_time));
- // FIXME: add location
- // FIXME: add URL
+ $obj->extra[] = array('location', false, $happening->location);
+ // FIXME: add URL
// XXX: probably need other stuff here
return $obj;