added help button for format drop down

This commit is contained in:
jamiesensei 2006-10-29 10:19:48 +00:00
parent 4505a8b762
commit cd9f129f81

View file

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