function getdirections_user_check in Get Directions 7.2
Same name and namespace in other branches
- 6.2 getdirections.module \getdirections_user_check()
- 6 getdirections.module \getdirections_user_check()
- 7.3 getdirections.module \getdirections_user_check()
Function to check the user status and existence
Parameters
int $uid:
Return value
Returns status.
1 call to getdirections_user_check()
File
- ./
getdirections.module, line 1447 - Fetches google map directions.
Code
function getdirections_user_check($uid) {
$query = db_select('users', 'u')
->fields('u', array(
'status',
))
->condition('u.uid', $uid);
$row = $query
->execute()
->fetchAssoc();
return isset($row['status']) && $row['status'] ? TRUE : FALSE;
}