MDL-22148 backup - support for manual/self/guest enrolments. Credit goes to Petr.
[moodle.git] / enrol / manual / lib.php
index d35b4c5..1d00e5e 100644 (file)
@@ -170,3 +170,16 @@ class enrol_manual_plugin extends enrol_plugin {
     }
 }
 
+/**
+ * Indicates API features that the enrol plugin supports.
+ *
+ * @param string $feature
+ * @return mixed True if yes (some features may use other values)
+ */
+function enrol_manual_supports($feature) {
+    switch($feature) {
+        case ENROL_RESTORE_TYPE: return ENROL_RESTORE_EXACT;
+
+        default: return null;
+    }
+}