function userprotect_delete_user in User protect 7
Deletes all protections for a user.
2 calls to userprotect_delete_user()
- userprotect_user_cancel in ./
userprotect.module - Implements hook_user_cancel().
- userprotect_user_delete in ./
userprotect.module - Implements hook_user_delete().
File
- ./
userprotect.module, line 523 - Main module file for the userprotect module.
Code
function userprotect_delete_user($uid) {
db_delete('userprotect')
->condition('uid', $uid)
->execute();
}