mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-15110 towards hotpot dml conversion
This commit is contained in:
parent
cb224386f7
commit
621fea38b8
6 changed files with 161 additions and 146 deletions
|
@ -148,8 +148,8 @@
|
|||
// delete questions and responses for this hotpot
|
||||
if ($records = $DB->get_records('hotpot_questions', array('hotpot'=>$hotpot->id), '', 'id,hotpot')) {
|
||||
$questionids = implode(',', array_keys($records));
|
||||
hotpot_delete_and_notify('hotpot_questions', "id IN ($questionids)", get_string('question', 'quiz'));
|
||||
hotpot_delete_and_notify('hotpot_responses', "question IN ($questionids)", get_string('answer', 'quiz'));
|
||||
hotpot_delete_and_notify('hotpot_questions', "id IN ($questionids)", array(), get_string('question', 'quiz'));
|
||||
hotpot_delete_and_notify('hotpot_responses', "question IN ($questionids)", array(), get_string('answer', 'quiz'));
|
||||
}
|
||||
|
||||
// start attempt counter and timer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue