diff --git a/modules/user/user.module b/modules/user/user.module index 406a66981348561e610956597d30b036df1ffc5f..99dbba94440b460a6ba47cd40aff4dc02d628338 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -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));