You are here

function nodejs_user_set_offline in Node.js integration 8

Same name and namespace in other branches
  1. 6 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()
NodejsPages::messageHandler in src/Controller/NodejsPages.php
@todo .

File

./nodejs.module, line 559

Code

function nodejs_user_set_offline($uid) {
  try {
    \Drupal::database()
      ->query('DELETE FROM {nodejs_presence} WHERE uid = :uid', array(
      ':uid' => $uid,
    ));
  } catch (Exception $e) {
  }
}