Implement new hook callbacks #334

This commit is contained in:
Benjamin Walker
2024-05-20 17:27:26 +10:00
parent e281b59eb4
commit 541b2d4407
4 changed files with 81 additions and 3 deletions

View File

@@ -68,6 +68,9 @@ function auth_outage_get_climaintenance_resource_file($file) {
/**
* Inject the warning bar into the page if there is currently an outage.
*
* This is a legacy callback that is used for compatibility with older Moodle versions.
* Moodle 4.4+ will use auth_outage\hook_callbacks::before_standard_top_of_body_html_generation instead.
*
* @return string|void
*/
function auth_outage_before_standard_top_of_body_html() {