Make question import/export formats fully pluggable, especially in respect of languages.
$string['backtoquiz'] = 'Back to quiz editing';
$string['bestgrade'] = 'Best grade';
$string['blackboard'] = 'Blackboard';
-$string['blackboard_6'] = 'Blackboard V6+';
+$string['blackboard_six'] = 'Blackboard V6+';
$string['braceerror'] = 'Could not find {...} around answers';
$string['bothattempts'] = 'Show students with and without attempts';
$string['calculated'] = 'Calculated';
'filter_' => array('filter'),
'format_' => array('course/format'),
'qtype_' => array('question/type'),
+ 'qformat_' => array('question/format'),
'report_' => array($CFG->admin.'/report', 'course/report', 'mod/quiz/report'),
'repository'=>array('repository'),
'resource_' => array('mod/resource/type'),
$mform->addElement('header','fileformat',get_string('fileformat','quiz'));
$fileformatnames = get_import_export_formats('export');
$radioarray = array();
- foreach ($fileformatnames as $id => $fileformatname) {
- $radioelement = &MoodleQuickForm::createElement('radio','format','',$fileformatname,$id);
- $radioelement->setHelpButton(array("format{$id}",$fileformatname,'quiz'));
+ foreach ($fileformatnames as $shortname => $fileformatname) {
+ $radioelement = &MoodleQuickForm::createElement('radio','format','',$fileformatname,$shortname);
+ $radioelement->setHelpButton(array("$shortname",$fileformatname,"qformat_$shortname"));
$radioarray[] = $radioelement;
}
$mform->addGroup($radioarray,'format','',array('<br />'),false);
*/
require_once ("$CFG->libdir/xmlize.php");
-class qformat_blackboard_6 extends qformat_default {
+class qformat_blackboard_six extends qformat_default {
function provide_import() {
return true;
}
$mform->addElement('header','fileformat', get_string('fileformat','quiz'));
$fileformatnames = get_import_export_formats('import');
$radioarray = array();
- foreach ($fileformatnames as $id => $fileformatname) {
- $radioelement = &MoodleQuickForm::createElement('radio','format','',$fileformatname,$id );
- $radioelement->setHelpButton(array("format{$id}",$fileformatname,'quiz'));
+ foreach ($fileformatnames as $shortname => $fileformatname) {
+ $radioelement = &MoodleQuickForm::createElement('radio','format','',$fileformatname,$shortname );
+ $radioelement->setHelpButton(array("$shortname",$fileformatname,"qformat_$shortname"));
$radioarray[] = $radioelement;
}
$mform->addGroup($radioarray,'format', '', array('<br />'), false);