Import formats now hard coded so only available ones appear in the list.

This commit is contained in:
thepurpleblob
2005-04-19 15:34:08 +00:00
parent 61b5fa54e6
commit 6f68b1e5b4
+5 -2
View File
@@ -4,6 +4,11 @@
require_once("../../config.php");
require_once("locallib.php");
// list of supported file formats
// if you add another one it must be added here to appear on the list
$fileformats = array('aiken','aon','blackboard','coursetestmanager',
'gift','learnwise','missingword','webct','xml' );
require_variable($category);
optional_variable($format);
@@ -90,8 +95,6 @@
error("No categories!");
}
$fileformats = get_list_of_plugins("mod/quiz/format");
$fileformatname = array();
foreach ($fileformats as $key => $fileformat) {
$formatname = get_string($fileformat, 'quiz');
if ($formatname == "[[$fileformat]]") {