Delete events when activity is deleted
This commit is contained in:
@@ -93,6 +93,10 @@ function assignment_delete_instance($id) {
|
||||
$result = false;
|
||||
}
|
||||
|
||||
if (! delete_records('event', 'modulename', 'assignment', 'instance', $assignment->id)) {
|
||||
$result = false;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
@@ -110,6 +110,10 @@ function chat_delete_instance($id) {
|
||||
$result = false;
|
||||
}
|
||||
|
||||
if (! delete_records('event', 'modulename', 'chat', 'instance', $chat->id)) {
|
||||
$result = false;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user