]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10837 Added the export_letters checkbox to the txt export form (it was the only...
authornicolasconnault <nicolasconnault>
Wed, 15 Aug 2007 06:40:55 +0000 (06:40 +0000)
committernicolasconnault <nicolasconnault>
Wed, 15 Aug 2007 06:40:55 +0000 (06:40 +0000)
grade/export/txt/grade_export_txt_form.php

index 3f5de952bab71c2b644078443662b3bb28ec7182..fe123261c082f73d96091427a909de50a12e8790 100755 (executable)
@@ -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'));
     }
 }
-?>
\ No newline at end of file
+?>