Permalink
Browse files

MDL-34382: Plagiarism API - add new option to flag modules that suppo…

…rt the use of plagiarism plugins
  • Loading branch information...
kanikagoyal committed Aug 13, 2012
1 parent 87e9331 commit 50da4ddd567f1ea68cb0bf1100c330d4940e697c
Showing with 6 additions and 0 deletions.
  1. +2 −0 lib/moodlelib.php
  2. +1 −0 mod/assign/lib.php
  3. +1 −0 mod/assignment/lib.php
  4. +1 −0 mod/forum/lib.php
  5. +1 −0 mod/workshop/lib.php
View
@@ -392,6 +392,8 @@
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');
View
@@ -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;
}
View
@@ -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;
}
View
@@ -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;
}
View
@@ -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;
}
}

0 comments on commit 50da4dd

Please sign in to comment.