Skip to content

Commit

Permalink
Add after_config callback for older Moodle versions (#373)
Browse files Browse the repository at this point in the history
* Add after_config callback for older Moodle versions

* Update callback function comment
  • Loading branch information
TomoTsuyuki authored Jan 9, 2025
1 parent ed66035 commit 7ac5964
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ function tool_excimer_before_session_start() {
$manager = manager::get_instance();
}

/**
* After config
*
* This is a legacy callback that is used for compatibility with older Moodle versions.
* Moodle 4.5+ will use tool_excimer\local\hooks\after_config::callback instead.
*
* @return void|null
*/
function tool_excimer_after_config(): void {
// Start processor.
$manager = manager::get_instance();
$manager->start_processor();
}

/**
* Hook to obtain a list of perfomence checks supplied by the plugin.
*
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

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

$plugin->version = 2024110100;
$plugin->version = 2024110101;
$plugin->release = 2024110100;
$plugin->requires = 2023100900; // Moodle 4.3.
$plugin->supported = [403, 405];
Expand Down

0 comments on commit 7ac5964

Please sign in to comment.