You are here

function nodejs_user_set_offline in Node.js integration 6

Same name and namespace in other branches
  1. 8 nodejs.module \nodejs_user_set_offline()
  2. 7 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 492

Code

function nodejs_user_set_offline($uid) {
  db_query('DELETE FROM {nodejs_presence} WHERE uid = %d', $uid);
}