mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Moving setHelpButton('format',.. after addgroup($radioarray,'format' so it applies to an existing form element
This commit is contained in:
parent
2f9b71f763
commit
f942cd72e6
@ -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');
|
||||
|
||||
//--------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user