chat, workshop MDL-24736 'require view' completion missing from these modules

This commit is contained in:
Sam Marshall
2010-10-18 14:20:44 +00:00
parent 9957af6810
commit 3a7507d081
4 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -1215,7 +1215,7 @@ function chat_supports($feature) {
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_BACKUP_MOODLE2: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return false;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_GRADE_HAS_GRADE: return false;
case FEATURE_GRADE_OUTCOMES: return true;
+3
View File
@@ -173,4 +173,7 @@ if ($chatusers = chat_get_users($chat->id, $currentgroup, $cm->groupingid)) {
echo $OUTPUT->box_end();
}
$completion = new completion_info($course);
$completion->set_module_viewed($cm);
echo $OUTPUT->footer();
+2
View File
@@ -48,6 +48,8 @@ function workshop_supports($feature) {
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_BACKUP_MOODLE2: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS:
return true;
default: return null;
}
}
+3
View File
@@ -500,4 +500,7 @@ case workshop::PHASE_CLOSED:
default:
}
$completion = new completion_info($course);
$completion->set_module_viewed($cm);
echo $output->footer();