Skip to content

Commit

Permalink
make the eventlist compatible with Moodle 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
danielneis committed Oct 21, 2024
1 parent d96331d commit 0e2ea11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions classes/local/step/trigger_event.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,13 @@ private function get_events_list() {
$eventlist = \tool_monitor\eventlist::get_all_eventlist();
$pluginlist = \tool_monitor\eventlist::get_plugin_list($eventlist);
$plugineventlist = [];
foreach ($pluginlist as $plugin => $pluginname) {
foreach ($eventlist[$plugin] as $event => $eventname) {
// Filter out events which cannot be triggered for some reason.
if (!$event::is_deprecated()) {
$plugineventlist[$event] = "{$pluginname}: {$eventname}";
foreach ($pluginlist as $plugintype => $plugins) {
foreach ($plugins as $plugin => $pluginname) {
foreach ($eventlist[$plugin] as $event => $eventname) {
// Filter out events which cannot be triggered for some reason.
if (!$event::is_deprecated()) {
$plugineventlist[$event] = "{$pluginname}: {$eventname}";
}
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024101000;
$plugin->release = 2024101000;
$plugin->version = 2024102100;
$plugin->release = 2024102100;
$plugin->requires = 2022112800; // Our lowest supported Moodle (3.3.0).
$plugin->supported = [400, 402];
$plugin->supported = [400, 402, 403, 404, 405];
// TODO $plugin->incompatible = ; // Available as of Moodle 3.9.0 or later.
$plugin->component = 'tool_dataflows';
$plugin->maturity = MATURITY_ALPHA;
Expand Down

0 comments on commit 0e2ea11

Please sign in to comment.