function workbench_access_user_delete in Workbench Access 7
Same name and namespace in other branches
- 8 workbench_access.module \workbench_access_user_delete()
Implements hook_user_delete().
On user delete, remove access rules. Note that we do not fire our own hooks here, as other modules need to be smart enough to handle this operation.
File
- ./
workbench_access.module, line 1171 - Workbench Access module file.
Code
function workbench_access_user_delete($account) {
db_delete('workbench_access_user')
->condition('uid', $account->uid)
->execute();
}