MDL-15498: Completion: added support for basic completion-on-view and on grade (where applicable) to assignment, choice, data, glossary, lesson, and resource.

This commit is contained in:
sam_marshall
2008-07-29 17:22:47 +00:00
parent 96fa52a47c
commit 18a2a0cb3a
12 changed files with 89 additions and 5 deletions
+11
View File
@@ -2270,4 +2270,15 @@ function data_get_extra_capabilities() {
return array('moodle/site:accessallgroups', 'moodle/site:viewfullnames');
}
/**
* @param string $feature FEATURE_xx constant for requested feature
* @return mixed True if module supports feature, null if doesn't know
*/
function data_supports($feature) {
switch($feature) {
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_GRADE_HAS_GRADE: return true;
default: return null;
}
}
?>