Added QUIZ_DEFAULT_SCORE ... later this will be a quiz option

This commit is contained in:
moodler 2003-03-03 17:05:35 +00:00
parent 9314930280
commit c363d9d11f
2 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,7 @@
}
}
$questions[] = $key;
$modform->grades[$key] = 1; // default score
$modform->grades[$key] = QUIZ_DEFAULT_SCORE;
}
}
if (!empty($questions)) {

View File

@ -32,6 +32,8 @@ $QUIZ_FILE_FORMAT = array ( "custom" => get_string("custom", "quiz"),
define("QUIZ_PICTURE_DEFAULT_HEIGHT", "200");
define("QUIZ_DEFAULT_SCORE", "1");
/// FUNCTIONS ///////////////////////////////////////////////////////////////////
function quiz_add_instance($quiz) {