function getdirections_user_check in Get Directions 6
Same name and namespace in other branches
- 6.2 getdirections.module \getdirections_user_check()
- 7.3 getdirections.module \getdirections_user_check()
- 7.2 getdirections.module \getdirections_user_check()
Function to check the user status and existence
Parameters
$uid:
Return value
Returns status.
1 call to getdirections_user_check()
File
- ./
getdirections.module, line 851 - Fetches google map directions.
Code
function getdirections_user_check($uid) {
$result = db_query('SELECT status FROM {users} WHERE uid=%d', array(
$uid,
));
$row = db_fetch_array($result);
return isset($row['status']) && $row['status'] ? TRUE : FALSE;
}