mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Added log_display entries for quiz
This commit is contained in:
parent
2383cadbab
commit
34a4dfee10
3 changed files with 14 additions and 1 deletions
|
@ -13,6 +13,13 @@ function quiz_upgrade($oldversion) {
|
||||||
execute_sql(" UPDATE `quiz_attempts` SET timestart = timemodified ");
|
execute_sql(" UPDATE `quiz_attempts` SET timestart = timemodified ");
|
||||||
execute_sql(" UPDATE `quiz_attempts` SET timefinish = timemodified ");
|
execute_sql(" UPDATE `quiz_attempts` SET timefinish = timemodified ");
|
||||||
}
|
}
|
||||||
|
if ($oldversion < 2002102101) {
|
||||||
|
execute_sql(" DELETE FROM log_display WHERE module = 'quiz' ");
|
||||||
|
execute_sql(" INSERT INTO log_display VALUES ('quiz', 'view', 'quiz', 'name') ");
|
||||||
|
execute_sql(" INSERT INTO log_display VALUES ('quiz', 'report', 'quiz', 'name') ");
|
||||||
|
execute_sql(" INSERT INTO log_display VALUES ('quiz', 'attempt', 'quiz', 'name') ");
|
||||||
|
execute_sql(" INSERT INTO log_display VALUES ('quiz', 'submit', 'quiz', 'name') ");
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,3 +177,9 @@ CREATE TABLE `quiz_truefalse` (
|
||||||
KEY `question` (`question`)
|
KEY `question` (`question`)
|
||||||
) TYPE=MyISAM COMMENT='Options for True-False questions';
|
) TYPE=MyISAM COMMENT='Options for True-False questions';
|
||||||
|
|
||||||
|
|
||||||
|
INSERT INTO log_display VALUES ('quiz', 'view', 'quiz', 'name');
|
||||||
|
INSERT INTO log_display VALUES ('quiz', 'report', 'quiz', 'name');
|
||||||
|
INSERT INTO log_display VALUES ('quiz', 'attempt', 'quiz', 'name');
|
||||||
|
INSERT INTO log_display VALUES ('quiz', 'submit', 'quiz', 'name');
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
// This fragment is called by moodle_needs_upgrading() and /admin/index.php
|
// This fragment is called by moodle_needs_upgrading() and /admin/index.php
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
$module->version = 2002102100; // The (date) version of this module
|
$module->version = 2002102101; // The (date) version of this module
|
||||||
$module->cron = 0; // How often should cron check this module (seconds)?
|
$module->cron = 0; // How often should cron check this module (seconds)?
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue