function userprotect_get_username in User protect 5
Same name and namespace in other branches
- 6 userprotect.module \userprotect_get_username()
- 7 userprotect.module \userprotect_get_username()
Gives the username of a protected user.
Parameters
$uid The user ID.:
Return value
The username.
2 calls to userprotect_get_username()
- userprotect_protected_users_delete_form in ./
userprotect.module - Menu callback. Removes a user from being protected, or removes an administrator bypass.
- userprotect_protections_bypass_submit in ./
userprotect.module - Processes the submitted user protection form.
File
- ./
userprotect.module, line 1018
Code
function userprotect_get_username($uid) {
return db_result(db_query('SELECT name FROM {users} WHERE uid = %d', $uid));
}