MDL-34382: Plagiarism API - add new option to flag modules that support the use of plagiarism plugins
This commit is contained in:
@@ -392,6 +392,8 @@ define('FEATURE_GRADE_OUTCOMES', 'outcomes');
|
||||
define('FEATURE_ADVANCED_GRADING', 'grade_advanced_grading');
|
||||
/** True if module controls the grade visibility over the gradebook */
|
||||
define('FEATURE_CONTROLS_GRADE_VISIBILITY', 'controlsgradevisbility');
|
||||
/** True if module supports plagiarism plugins */
|
||||
define('FEATURE_PLAGIARISM', 'plagiarism');
|
||||
|
||||
/** True if module has code to track whether somebody viewed it */
|
||||
define('FEATURE_COMPLETION_TRACKS_VIEWS', 'completion_tracks_views');
|
||||
|
||||
@@ -88,6 +88,7 @@ function assign_supports($feature) {
|
||||
case FEATURE_BACKUP_MOODLE2: return true;
|
||||
case FEATURE_SHOW_DESCRIPTION: return true;
|
||||
case FEATURE_ADVANCED_GRADING: return true;
|
||||
case FEATURE_PLAGIARISM: return true;
|
||||
|
||||
default: return null;
|
||||
}
|
||||
|
||||
@@ -3905,6 +3905,7 @@ function assignment_supports($feature) {
|
||||
case FEATURE_BACKUP_MOODLE2: return true;
|
||||
case FEATURE_SHOW_DESCRIPTION: return true;
|
||||
case FEATURE_ADVANCED_GRADING: return true;
|
||||
case FEATURE_PLAGIARISM: return true;
|
||||
|
||||
default: return null;
|
||||
}
|
||||
|
||||
@@ -303,6 +303,7 @@ function forum_supports($feature) {
|
||||
case FEATURE_RATE: return true;
|
||||
case FEATURE_BACKUP_MOODLE2: return true;
|
||||
case FEATURE_SHOW_DESCRIPTION: return true;
|
||||
case FEATURE_PLAGIARISM: return true;
|
||||
|
||||
default: return null;
|
||||
}
|
||||
|
||||
@@ -53,6 +53,7 @@ function workshop_supports($feature) {
|
||||
case FEATURE_COMPLETION_TRACKS_VIEWS:
|
||||
return true;
|
||||
case FEATURE_SHOW_DESCRIPTION: return true;
|
||||
case FEATURE_PLAGIARISM: return true;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user