function event_node_ical in Event 5.2
Same name and namespace in other branches
- 5 event.module \event_node_ical()
Return an ical for a specific event
1 string reference to 'event_node_ical'
- event_menu in ./
event.module - Implementation of hook_menu()
File
- ./
event.module, line 809
Code
function event_node_ical() {
$node = node_load(arg(1));
$event = _event_node_ical($node);
drupal_set_header('Content-Type: text/calendar; charset=utf-8');
drupal_set_header('Content-Disposition: attachment; filename="calendar.ics"; ');
print ical_export(array(
$event,
), $event['summary']);
}