Thursday, March 24, 2011

Moodle - Set default enrolable to no

When you create a course on Moodle, the course enrolable is always set to yes by default. Sometime this is problematic for you.
This is how you set course enrolable to no by default!

Open moodle/course/edit_form.php and find the line:

$mform->setDefault('enrollable', 1);

And change it to:

$mform->setDefault('enrollable', 0);

No comments: