function password_policy_uid_load in Password Policy 6
Same name and namespace in other branches
- 7 password_policy.module \password_policy_uid_load()
Load user object from the database.
Parameters
$id: The user id
Return value
A populated user object or NULL if not found.
File
- ./
password_policy.module, line 293 - The password policy module allows you to enforce a specific level of password complexity for the user passwords on the system.
Code
function password_policy_uid_load($id) {
if (is_numeric($id)) {
$account = user_load(array(
'uid' => $id,
));
if ($account) {
return $account;
}
}
return FALSE;
}