]> git.mjollnir.org Git - moodle.git/commitdiff
Disable workshop by default in a new install MDL-13100
authormoodler <moodler>
Wed, 23 Jan 2008 04:38:43 +0000 (04:38 +0000)
committermoodler <moodler>
Wed, 23 Jan 2008 04:38:43 +0000 (04:38 +0000)
mod/workshop/defaults.php [new file with mode: 0644]

diff --git a/mod/workshop/defaults.php b/mod/workshop/defaults.php
new file mode 100644 (file)
index 0000000..95b8965
--- /dev/null
@@ -0,0 +1,9 @@
+<?php  // $Id$
+    if (empty($CFG->workshop_initialdisable)) {
+        if (!count_records('workshop')) {
+            set_field('modules', 'visible', 0, 'name', 'workshop');  // Disable it by default
+            set_config('workshop_initialdisable', 1);
+        }
+    }
+
+?>