aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-08-14 18:22:18 -0700
committerredmatrix <git@macgirvin.com>2016-08-14 18:22:18 -0700
commit000861da0dd68a94d67da15301eab7fd2df3cc1a (patch)
tree44543e0966ae8e6af375408009dcbad0f56ac793 /include
parent7ae097ef6b59083db9fe9134d10815a2b329b542 (diff)
downloadvolse-hubzilla-000861da0dd68a94d67da15301eab7fd2df3cc1a.tar.gz
volse-hubzilla-000861da0dd68a94d67da15301eab7fd2df3cc1a.tar.bz2
volse-hubzilla-000861da0dd68a94d67da15301eab7fd2df3cc1a.zip
event_store_event hook
Diffstat (limited to 'include')
-rw-r--r--include/event.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/event.php b/include/event.php
index 3d650cd14..407736a23 100644
--- a/include/event.php
+++ b/include/event.php
@@ -343,6 +343,13 @@ function event_store_event($arr) {
}
}
+ $hook_info = [ 'event' => $arr, 'existing_event' => $existing_event, 'cancel' => false ];
+ call_hooks('event_store_event',$hook_info);
+ if($hook_info['cancel'])
+ return false;
+
+ $arr = $hook_info['event'];
+ $existing_event = $hook_info['existing_event'];
if($existing_event) {