MDL-18910 moving modedit features to modname_supports()
[moodle.git] / mod / choice / lib.php
index e448bbe..3cc1325 100644 (file)
@@ -762,7 +762,14 @@ function choice_get_extra_capabilities() {
  */
 function choice_supports($feature) {
     switch($feature) {
+        case FEATURE_GROUPS:                  return true;
+        case FEATURE_GROUPINGS:               return true;
+        case FEATURE_GROUPMEMBERSONLY:        return true;
+        case FEATURE_MODEDIT_INTRO_EDITOR:    return true;
         case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
+        case FEATURE_GRADE_HAS_GRADE:         return false;
+        case FEATURE_GRADE_OUTCOMES:          return false;
+
         default: return null;
     }
 }