Disable Workshop by default in 1.9 MDL-13100

This commit is contained in:
moodler
2008-01-23 02:52:12 +00:00
parent 75ec296d45
commit 7604731552
+9
View File
@@ -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);
}
}
?>