From a4caaefd32ca68f45f7526dde61d17e8ca3dc3af Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 19 Aug 2015 16:50:32 -0700 Subject: event integration improvements --- include/event.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/event.php') diff --git a/include/event.php b/include/event.php index 1ae0d06ef..5eaeca813 100644 --- a/include/event.php +++ b/include/event.php @@ -850,6 +850,17 @@ function event_store_item($arr, $event) { $item_arr['item_origin'] = $item_origin; $item_arr['item_thread_top'] = $item_thread_top;; + $attach = array(array( + 'href' => z_root() . '/events/ical/' . urlencode($event['event_hash']), + 'length' => 0, + 'type' => 'text/calendar', + 'title' => t('event') . '-' . $event['event_hash'], + 'revision' => '' + )); + + $item_arr['attach'] = $attach; + + if(array_key_exists('term', $arr)) $item_arr['term'] = $arr['term']; -- cgit v1.2.3