]> git.mjollnir.org Git - moodle.git/commitdiff
added help button for format drop down
authorjamiesensei <jamiesensei>
Sun, 29 Oct 2006 10:19:48 +0000 (10:19 +0000)
committerjamiesensei <jamiesensei>
Sun, 29 Oct 2006 10:19:48 +0000 (10:19 +0000)
mod/glossary/comment_form.php

index 5a6e6c642086a37050f40e6b23bf3dd88dd80935..ba69f511764cbede0acdae6b7d8bcc6af3f12d61 100644 (file)
@@ -1,6 +1,5 @@
 <?php //$Id$
 
-// TODO - THE HELP BUTTON FOR FORMATTING TO BE Included and formatting drop down box.
 require_once $CFG->libdir.'/formslib.php';
 
 class glossary_comment_form extends moodleform {
@@ -13,6 +12,7 @@ class glossary_comment_form extends moodleform {
         $mform->setType('entrycomment', PARAM_RAW); // processed by trusttext or cleaned before the display
 
         $mform->addElement('format', 'format', get_string('format'));
+        $mform->setHelpButton('format', array("textformat", get_string("helpformatting")));
 
         // hidden optional params
         $mform->addElement('hidden', 'cid', 0);