mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
MDL-28325 Enrolment: added help to the duration, start date and end date setting
The patch also fixes one typo in enrol_manual detected while working on this.
This commit is contained in:
parent
ecb8829273
commit
94f630e33f
7 changed files with 22 additions and 10 deletions
|
@ -46,6 +46,7 @@ class enrol_manual_edit_form extends moodleform {
|
|||
|
||||
$mform->addElement('duration', 'enrolperiod', get_string('defaultperiod', 'enrol_manual'), array('optional' => true, 'defaultunit' => 86400));
|
||||
$mform->setDefault('enrolperiod', $plugin->get_config('enrolperiod'));
|
||||
$mform->addHelpButton('enrolperiod', 'defaultperiod', 'enrol_manual');
|
||||
|
||||
if ($instance->id) {
|
||||
$roles = get_default_enrol_roles($context, $instance->roleid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue