MDL-10837 Added the export_letters checkbox to the txt export form (it was the only one overriding the grade_export form)

This commit is contained in:
nicolasconnault
2007-08-15 06:40:55 +00:00
parent ecc764d511
commit 92df185d85
+7 -1
View File
@@ -6,6 +6,12 @@ class grade_export_txt_form extends moodleform {
global $CFG;
include_once($CFG->libdir.'/pear/HTML/QuickForm/advcheckbox.php');
$mform =& $this->_form;
$mform->addElement('advcheckbox', 'export_letters', get_string('exportletters', 'grades'));
$mform->setDefault('export_letters', 0);
$mform->setHelpButton('export_letters', array(false, get_string('exportletters', 'grades'),
false, true, false, get_string("exportlettershelp", 'grades')));
$mform->addElement('header', 'general', 'Gradeitems to be included'); // TODO: localize
$id = $this->_customdata['id']; // course id
$mform->addElement('hidden', 'id', $id);
@@ -29,4 +35,4 @@ class grade_export_txt_form extends moodleform {
$this->add_action_buttons(false, get_string('submit'));
}
}
?>
?>