MDL-21432 backup 2.0 - initial commit. Enable forum backup
authorEloy Lafuente <stronk7@moodle.org>
Wed, 21 Apr 2010 14:17:11 +0000 (14:17 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Wed, 21 Apr 2010 14:17:11 +0000 (14:17 +0000)
lib/moodlelib.php
mod/forum/lib.php

index e7665cb..cfa01da 100644 (file)
@@ -363,6 +363,8 @@ define('FEATURE_MODEDIT_DEFAULT_COMPLETION', 'modedit_default_completion');
 define('FEATURE_COMMENT', 'comment');
 
 define('FEATURE_RATE', 'rate');
+/** True if module supports backup/restore of moodle2 format */
+define('FEATURE_BACKUP_MOODLE2', 'backup_moodle2');
 
 /** Unspecified module archetype */
 define('MOD_ARCHETYPE_OTHER', 0);
index 0cf9d4e..0b94b1f 100644 (file)
@@ -277,7 +277,8 @@ function forum_supports($feature) {
         case FEATURE_COMPLETION_HAS_RULES:    return true;
         case FEATURE_GRADE_HAS_GRADE:         return true;
         case FEATURE_GRADE_OUTCOMES:          return true;
-        case FEATURE_RATE:                 return true;
+        case FEATURE_RATE:                    return true;
+        case FEATURE_BACKUP_MOODLE2:          return true;
 
         default: return null;
     }