You are here

function getdirections_user_check in Get Directions 7.3

Same name and namespace in other branches
  1. 6.2 getdirections.module \getdirections_user_check()
  2. 6 getdirections.module \getdirections_user_check()
  3. 7.2 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()
getdirections_uid_load in ./getdirections.module

File

./getdirections.module, line 1451
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;
}