Moving setHelpButton('format',.. after addgroup($radioarray,'format' so it applies to an existing form element

This commit is contained in:
Pierre Pichet 2010-04-24 03:31:42 +00:00
parent 2f9b71f763
commit f942cd72e6

View File

@ -16,10 +16,10 @@ class question_export_form extends moodleform {
$radioarray = array();
foreach ($fileformatnames as $shortname => $fileformatname) {
$radioelement = &MoodleQuickForm::createElement('radio','format','',$fileformatname,$shortname);
$mform->setHelpButton('format', array("$shortname",$fileformatname,"qformat_$shortname"));
$radioarray[] = $radioelement;
}
$mform->addGroup($radioarray,'format','',array('<br />'),false);
$mform->setHelpButton('format', array("$shortname",$fileformatname,"qformat_$shortname"));
$mform->addRule('format',null,'required',null,'client');
//--------------------------------------------------------------------------------