You are here

function userprotect_get_username in User protect 6

Same name and namespace in other branches
  1. 5 userprotect.module \userprotect_get_username()
  2. 7 userprotect.module \userprotect_get_username()

Gives the username of a protected user.

Parameters

$uid The user ID.:

Return value

The username.

1 call to userprotect_get_username()
userprotect_protections_bypass_submit in ./userprotect.module
Processes the submitted user protection form.

File

./userprotect.module, line 1074

Code

function userprotect_get_username($uid) {
  return db_result(db_query('SELECT name FROM {users} WHERE uid = %d', $uid));
}