completion MDL-24119 moved a string out of the code and into a lang file

This commit is contained in:
Andrew Davis 2010-10-14 08:53:02 +00:00
parent 7cd7627c87
commit e532ce752e

View File

@ -51,7 +51,7 @@ class completion_criteria_unenrol extends completion_criteria {
* @return void
*/
public function config_form_display(&$mform, $data = null) {
$mform->addElement('checkbox', 'criteria_unenrol', 'Completion on unenrolment');
$mform->addElement('checkbox', 'criteria_unenrol', get_string('completiononunenrolment','completion'));
if ($this->id) {
$mform->setDefault('criteria_unenrol', 1);