From f942cd72e620acc42323b89341da8081750ae8e4 Mon Sep 17 00:00:00 2001 From: Pierre Pichet Date: Sat, 24 Apr 2010 03:31:42 +0000 Subject: [PATCH] Moving setHelpButton('format',.. after addgroup($radioarray,'format' so it applies to an existing form element --- question/export_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/export_form.php b/question/export_form.php index f98d2071aedd9..6f9aa4e9aa2be 100644 --- a/question/export_form.php +++ b/question/export_form.php @@ -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('
'),false); + $mform->setHelpButton('format', array("$shortname",$fileformatname,"qformat_$shortname")); $mform->addRule('format',null,'required',null,'client'); //--------------------------------------------------------------------------------