Commit b242edc7 authored by jhodgdon's avatar jhodgdon

Issue #1552400 by mjonesdinero, SumeetSingh: Fix up docs for user_is_blocked()

parent c82c3caf
......@@ -540,7 +540,12 @@ function user_access($string, $account = NULL, $reset = FALSE) {
* Checks for usernames blocked by user administration.
* @return boolean TRUE for blocked users, FALSE for active.
* @param $name
* A string containing a name of the user.
* @return
* Object with property 'name' (the user name), if the user is blocked;
* FALSE if the user is not blocked.
function user_is_blocked($name) {
$deny = db_fetch_object(db_query("SELECT name FROM {users} WHERE status = 0 AND name = LOWER('%s')", $name));
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment