function role_watchdog_user_cancel in Role Watchdog 7
Same name and namespace in other branches
- 7.2 role_watchdog.module \role_watchdog_user_cancel()
Implements hook_user_cancel().
File
- ./
role_watchdog.module, line 131 - Logs changes to user roles.
Code
function role_watchdog_user_cancel($edit, $account, $method) {
db_delete('role_watchdog')
->condition('aid', $account->uid)
->execute();
db_update('role_watchdog')
->fields(array(
'uid' => 0,
))
->condition('uid', $account->uid)
->execute();
}