Now only displays available export formats. List is now hard-coded in this file.

This commit is contained in:
thepurpleblob
2005-04-19 15:26:37 +00:00
parent d30bd73457
commit c9a9705ef1
+5 -2
View File
@@ -4,6 +4,10 @@
require_once("../../config.php");
require_once("locallib.php");
// list formats that are supported for export
// need to change this if you add something!
$fileformats = array( 'gift', 'xml', 'qti' );
require_variable($category);
optional_variable($format);
@@ -87,8 +91,7 @@
error("No categories!");
}
$fileformats = get_list_of_plugins("mod/quiz/format");
$fileformatname = array();
// iterate over valid formats to generate dropdown list
foreach ($fileformats as $key => $fileformat) {
$formatname = get_string($fileformat, 'quiz');
if ($formatname == "[[$fileformat]]") {