function join_values($name, $value) { // special case, multiple authors - joined by " and " if ($name == 'author') { return join(' and ', $value); } return parent::join_values($name, $value); }
function ICalendarFormatter($module, $util = NULL) { parent::__construct($module, $util); // set some calendar level properties $this->calendar = new vcalendar(array('unique_id' => 'bufvc.ac.uk')); $this->calendar->setProperty('method', 'PUBLISH'); $this->calendar->setProperty('X-WR-CALNAME', 'BUFVC iCal export'); $this->calendar->setProperty('X-WR-CALDESC', 'BUFVC exported iCal data'); $this->calendar->setProperty('X-WR-TIMEZONE', 'Europe/London'); }