troodle-expcontent/db/events.php
Kumi 321c470a23
feat: add event observer for course viewing
Introduces an event observer to inject JavaScript into courses containing the exp360 activity when the course is viewed.

The newly created `db/events.php` initializes event observers, while updates to `lib.php` define the event observer callback and the observer list. Enhancements to `global.js` include modal handling logic for improved UI interaction.

This aids in dynamically loading required scripts, enhancing user experience in courses with exp360 activities.
2024-07-05 12:02:11 +02:00

5 lines
No EOL
91 B
PHP

<?php
defined('MOODLE_INTERNAL') || die();
$observers = mod_exp360_get_event_observers();