Disable workshop by default in a new install MDL-13100

This commit is contained in:
moodler 2008-01-23 04:38:43 +00:00
parent e35b5c404b
commit 16c6dc3b2e

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);
}
}
?>