You are here

function nodejs_user_set_offline in Node.js integration 7

Same name and namespace in other branches
  1. 8 nodejs.module \nodejs_user_set_offline()
  2. 6 nodejs.module \nodejs_user_set_offline()

Set the user as offline.

Parameters

$uid:

1 call to nodejs_user_set_offline()
nodejs_message_handler in ./nodejs.module
Menu callback: handles all messages from Node.js server.

File

./nodejs.module, line 668

Code

function nodejs_user_set_offline($uid) {
  try {
    db_query('DELETE FROM {nodejs_presence} WHERE uid = :uid', array(
      ':uid' => $uid,
    ));
  } catch (Exception $e) {
  }
}