Si vous constatez la perte de tickets, de commentaires ou de projets, veuillez consulter la page

Commit 000861da authored by redmatrix's avatar redmatrix

event_store_event hook

parent 7ae097ef
Called from event_store_event() when an event record is being stored.
Hook info is an array
'event' => the passed event details, ready for storage
'existing_event' => If the event already exists, a copy of the original event record from the database
'cancel' => false - set to true to cancel the operation.
......@@ -184,6 +184,9 @@ Hooks allow plugins/addons to "hook into" the code at many points and alter the
called when an event record is created
called when an event record is created or updated
called when an event record is modified
......@@ -343,6 +343,13 @@ function event_store_event($arr) {
$hook_info = [ 'event' => $arr, 'existing_event' => $existing_event, 'cancel' => false ];
return false;
$arr = $hook_info['event'];
$existing_event = $hook_info['existing_event'];
if($existing_event) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment