aboutsummaryrefslogtreecommitdiffstats
path: root/include/event.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-08-19 16:50:32 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-08-19 16:50:32 -0700
commita4caaefd32ca68f45f7526dde61d17e8ca3dc3af (patch)
tree6d428adcffc2956b0a2e5688bbbb33ec7917ce23 /include/event.php
parent4e3d295c909405da61d7ccd6c7bd99bd35c9feec (diff)
downloadvolse-hubzilla-a4caaefd32ca68f45f7526dde61d17e8ca3dc3af.tar.gz
volse-hubzilla-a4caaefd32ca68f45f7526dde61d17e8ca3dc3af.tar.bz2
volse-hubzilla-a4caaefd32ca68f45f7526dde61d17e8ca3dc3af.zip
event integration improvements
Diffstat (limited to 'include/event.php')
-rw-r--r--include/event.php11
1 files changed, 11 insertions, 0 deletions
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'];