You are here

function getdirections_user_check in Get Directions 6.2

Same name and namespace in other branches
  1. 6 getdirections.module \getdirections_user_check()
  2. 7.3 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 1294
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;
}