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:
David Mudrak 2011-07-13 16:47:05 +02:00
parent ecb8829273
commit 94f630e33f
7 changed files with 22 additions and 10 deletions

View file

@ -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);