function user_delete_user_delete_access in User Delete 6
Checks whether a user can delete an account.
Unique function name required to avoid clash with core user_delete_access().
1 string reference to 'user_delete_user_delete_access'
- user_delete_menu_alter in ./
user_delete.module - Implementation of hook_menu_alter().
File
- ./
user_delete.module, line 49 - User delete - Let users delete their own account.
Code
function user_delete_user_delete_access($account) {
global $user;
return (user_access('administer users') || user_access('delete own account') && $account->uid == $user->uid) && $account->uid > 0;
}