MDL-28387 logs: Log data when a user is deleted

This commit is contained in:
Ankit Agarwal
2012-02-29 14:15:59 +08:00
parent c4a12afaf9
commit 20a2f7596c
+3
View File
@@ -3878,6 +3878,9 @@ function delete_user($user) {
$updateuser->timemodified = time();
$DB->update_record('user', $updateuser);
// Add this action to log
add_to_log(SITEID, 'user', 'delete', "view.php?id=$user->id", $user->firstname.' '.$user->lastname);
// We will update the user's timemodified, as it will be passed to the user_deleted event, which
// should know about this updated property persisted to the user's table.