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:
parent
9066e451c3
commit
0842d40df9
1 changed files with 7 additions and 0 deletions
7
lib.php
7
lib.php
|
@ -57,4 +57,11 @@ function mod_exp360_cm_info_dynamic(cm_info $cm)
|
||||||
|
|
||||||
$cm->set_no_view_link();
|
$cm->set_no_view_link();
|
||||||
$cm->set_content($modals . $script);
|
$cm->set_content($modals . $script);
|
||||||
|
}
|
||||||
|
|
||||||
|
function mod_exp360_supports($feature) {
|
||||||
|
switch($feature) {
|
||||||
|
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
|
||||||
|
default: return null;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue