Skip to content

Commit

Permalink
Moving setHelpButton('format',.. after addgroup($radioarray,'format' …
Browse files Browse the repository at this point in the history
…so it applies to an existing form element
  • Loading branch information
ppichet committed Apr 24, 2010
1 parent 2f9b71f commit f942cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/export_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ function definition() {
$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');

//--------------------------------------------------------------------------------
Expand Down

0 comments on commit f942cd7

Please sign in to comment.