Skip to content

Commit

Permalink
Merge pull request #12690 from atm-greg/Hook_on_ics_generation
Browse files Browse the repository at this point in the history
NEW hook on ics generation to add more events in eventarray
  • Loading branch information
eldy committed Dec 30, 2019
2 parents ece8390 + caaa95d commit 945296b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions htdocs/comm/action/class/actioncomm.class.php
Expand Up @@ -1721,6 +1721,13 @@ public function build_exportfile($format, $type, $cachedelay, $filename, $filter
}
$diff++;
}

$parameters=array('filters' => $filters, 'eventarray' => &$eventarray);
$reshook=$hookmanager->executeHooks('addMoreEventsExport', $parameters); // Note that $action and $object may have been modified by hook
if ($reshook > 0)
{
$eventarray = $hookmanager->resArray;
}
}
else
{
Expand Down

0 comments on commit 945296b

Please sign in to comment.