feat: add support for completion tracking

Added a new function to support completion tracking by handling the FEATURE_COMPLETION_TRACKS_VIEWS feature. This enhancement enables tracking user views for module completion, improving user progress monitoring.
This commit is contained in:
Kumi 2024-09-23 10:10:21 +02:00
parent 9066e451c3
commit 0842d40df9
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -57,4 +57,11 @@ function mod_exp360_cm_info_dynamic(cm_info $cm)
$cm->set_no_view_link();
$cm->set_content($modals . $script);
}
function mod_exp360_supports($feature) {
switch($feature) {
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
default: return null;
}
}