function nodejs_set_user_presence_list in Node.js integration 6
Same name and namespace in other branches
- 8 nodejs.module \nodejs_set_user_presence_list()
- 7 nodejs.module \nodejs_set_user_presence_list()
Set the list of uids a user can see presence notifications for.
s
Parameters
$uid:
File
- ./
nodejs.module, line 84
Code
function nodejs_set_user_presence_list($uid, array $uids) {
$response = Nodejs::setUserPresenceList($uid, $uids);
if (isset($response->error)) {
watchdog('nodejs', t('Error setting user presence list for uid "%uid", error from the Node.js server: [%code] %error', array(
'%uid' => $uid,
'%code' => $response->code,
'%error' => $response->error,
)));
return FALSE;
}
else {
return $response;
}
}