mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 20:26:32 +01:00
updated lesson_delete_instance to delete records from timer, branch, and high_scores tables
This commit is contained in:
parent
e6e3416ce9
commit
011cfc95ed
@ -166,8 +166,17 @@ function lesson_delete_instance($id) {
|
||||
if (! delete_records("lesson_grades", "lessonid", "$lesson->id")) {
|
||||
$result = false;
|
||||
}
|
||||
|
||||
return $result;
|
||||
if (! delete_records("lesson_timer", "lessonid", "$lesson->id")) {
|
||||
$result = false;
|
||||
}
|
||||
if (! delete_records("lesson_branch", "lessonid", "$lesson->id")) {
|
||||
$result = false;
|
||||
}
|
||||
if (! delete_records("lesson_high_scores", "lessonid", "$lesson->id")) {
|
||||
$result = false;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/*******************************************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user