MDL-42919 Question: Remove   from empty labels
This allows the form elements with empty labels to "fold" properly.
This commit is contained in:
@@ -51,7 +51,7 @@ class question_export_form extends moodleform {
|
||||
foreach ($fileformatnames as $shortname => $fileformatname) {
|
||||
$currentgrp1 = array();
|
||||
$currentgrp1[] = $mform->createElement('radio', 'format', '', $fileformatname, $shortname);
|
||||
$mform->addGroup($currentgrp1, "formathelp[$i]", ' ', array('<br />'), false);
|
||||
$mform->addGroup($currentgrp1, "formathelp[$i]", '', array('<br />'), false);
|
||||
|
||||
if (get_string_manager()->string_exists('pluginname_help', 'qformat_' . $shortname)) {
|
||||
$mform->addHelpButton("formathelp[$i]", 'pluginname', 'qformat_' . $shortname);
|
||||
|
||||
@@ -53,7 +53,7 @@ class question_import_form extends moodleform {
|
||||
foreach ($fileformatnames as $shortname => $fileformatname) {
|
||||
$currentgrp1 = array();
|
||||
$currentgrp1[] = $mform->createElement('radio', 'format', '', $fileformatname, $shortname);
|
||||
$mform->addGroup($currentgrp1, "formathelp[$i]", ' ', array('<br />'), false);
|
||||
$mform->addGroup($currentgrp1, "formathelp[$i]", '', array('<br />'), false);
|
||||
|
||||
if (get_string_manager()->string_exists('pluginname_help', 'qformat_' . $shortname)) {
|
||||
$mform->addHelpButton("formathelp[$i]", 'pluginname', 'qformat_' . $shortname);
|
||||
|
||||
Reference in New Issue
Block a user