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

This commit is contained in:
Ankit Agarwal
2012-03-02 13:29:58 +08:00
parent f24a1a74e5
commit eb2cbfc6d8
+3
View File
@@ -3495,6 +3495,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);
// notify auth plugin - do not block the delete even when plugin fails
$authplugin = get_auth_plugin($user->auth);