function nodeviewcount_user_load in Node view count 7
Same name and namespace in other branches
- 7.3 nodeviewcount.module \nodeviewcount_user_load()
Menu argument loader: Current user.
Parameters
int $uid: User id.
Return value
bool|mixed User object or FALSE.
File
- ./
nodeviewcount.module, line 61
Code
function nodeviewcount_user_load($uid) {
if (is_numeric($uid)) {
$user = user_load($uid);
if ($user) {
return $user;
}
}
return FALSE;
}