Issue #1552400 by mjonesdinero, SumeetSingh: Fix documentation for user_is_blocked, which was misleading.

merge-requests/26/head
Jennifer Hodgdon 2012-06-26 09:32:12 -07:00
parent cc813308a0
commit 576216bede
1 changed files with 6 additions and 1 deletions

View File

@ -823,7 +823,12 @@ function user_access($string, $account = NULL) {
/**
* 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) {
return db_select('users')