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

This commit is contained in:
Ankit Agarwal 2012-02-28 14:46:55 +08:00
parent c4a12afaf9
commit 20a2f7596c

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.