MDL-59388 calendar: Allow filter to be specified when fetching events

This commit is contained in:
Andrew Nicols
2017-08-14 09:28:23 +08:00
committed by Simey Lameze
parent 6ad2bfd124
commit 7fe41af525
+4 -2
View File
@@ -70,7 +70,8 @@ class api {
array $groupsfilter = null,
array $coursesfilter = null,
$withduration = true,
$ignorehidden = true
$ignorehidden = true,
callable $filter = null
) {
global $USER;
@@ -100,7 +101,8 @@ class api {
$groupsfilter,
$coursesfilter,
$withduration,
$ignorehidden
$ignorehidden,
$filter
);
}