mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 20:36:42 +01:00
While implementing this, I removed the ~100 lines of very similar code from the top of each question type's editquestion.html template, and moved this to a the function print_question_form_start() in the base class, which uses the template question/type/editquestionstart.html. This is described in more detail here: http://moodle.org/mod/forum/discuss.php?d=51590, and is why this patch makes the codebase 523 lines smaller.
45 lines
1.3 KiB
PHP
45 lines
1.3 KiB
PHP
<?php // $Id$
|
|
|
|
// This file is generally only included from upgrade_activity_modules()
|
|
// It defines default values for any important configuration variables
|
|
|
|
$defaults = array (
|
|
'quiz_review' => 0xffffff,
|
|
'quiz_attemptonlast' => 0,
|
|
'quiz_attempts' => 0,
|
|
'quiz_grademethod' => '',
|
|
'quiz_decimalpoints' => 2,
|
|
'quiz_maximumgrade' => 10,
|
|
'quiz_password' => '',
|
|
'quiz_popup' => 0,
|
|
'quiz_questionsperpage' => 0,
|
|
'quiz_shuffleanswers' => 1,
|
|
'quiz_shufflequestions' => 0,
|
|
'quiz_subnet' => '',
|
|
'quiz_timelimit' => 0,
|
|
'quiz_optionflags' => 1,
|
|
'quiz_penaltyscheme' => 1,
|
|
'quiz_delay1' => 0,
|
|
'quiz_delay2' => 0,
|
|
|
|
'quiz_fix_review' => 0,
|
|
'quiz_fix_attemptonlast' => 0,
|
|
'quiz_fix_attempts' => 0,
|
|
'quiz_fix_grademethod' => 0,
|
|
'quiz_fix_decimalpoints' => 0,
|
|
'quiz_fix_password' => 0,
|
|
'quiz_fix_popup' => 0,
|
|
'quiz_fix_questionsperpage' => 0,
|
|
'quiz_fix_shuffleanswers' => 0,
|
|
'quiz_fix_shufflequestions' => 0,
|
|
'quiz_fix_subnet' => 0,
|
|
'quiz_fix_timelimit' => 0,
|
|
'quiz_fix_adaptive' => 0,
|
|
'quiz_fix_penaltyscheme' => 0,
|
|
'quiz_fix_delay1' => 0,
|
|
'quiz_fix_delay2' => 0,
|
|
|
|
);
|
|
|
|
?>
|