MDL-18910 moving modedit features to modname_supports()
[moodle.git] / mod / data / lib.php
index a36e251..273015f 100755 (executable)
@@ -2325,10 +2325,16 @@ function data_get_extra_capabilities() {
  */
 function data_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 true;
+        case FEATURE_GRADE_HAS_GRADE:         return true;
+        case FEATURE_GRADE_OUTCOMES:          return true;
+
         default: return null;
-    }
+            }
 }
 function data_export_csv($export, $delimiter_name, $dataname, $count, $return=false) {
     global $CFG;