mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
Disable workshop by default in a new install MDL-13100
This commit is contained in:
parent
e35b5c404b
commit
16c6dc3b2e
9
mod/workshop/defaults.php
Normal file
9
mod/workshop/defaults.php
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user