Quiz doesn't attempt to delete blocks placed in deleted quiz view pages anymore;
this is going to be taken care of from course/mod.php.
This commit is contained in:
@@ -170,10 +170,6 @@ function quiz_delete_instance($id) {
|
||||
$result = false;
|
||||
}
|
||||
|
||||
if (! delete_records('block_instance', 'pageid', $quiz->id, 'pagetype', PAGE_QUIZ_VIEW)) {
|
||||
$result = false;
|
||||
}
|
||||
|
||||
if ($events = get_records_select('event', "modulename = 'quiz' and instance = '$quiz->id'")) {
|
||||
foreach($events as $event) {
|
||||
delete_event($event->id);
|
||||
|
||||
Reference in New Issue
Block a user