event_store_event hook

This commit is contained in:
redmatrix
2016-08-14 18:22:18 -07:00
parent 7ae097ef6b
commit 000861da0d
3 changed files with 21 additions and 0 deletions

View File

@@ -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) {