You are here

function nodejs_buddylist_get_online_uids in Node.js integration 7

Filter the given list of uids based on who is online.

1 call to nodejs_buddylist_get_online_uids()
nodejs_buddylist_block_content in nodejs_buddylist/nodejs_buddylist.module
Get the content for the buddy list block.

File

nodejs_buddylist/nodejs_buddylist.module, line 131

Code

function nodejs_buddylist_get_online_uids($uids) {
  return db_select('nodejs_presence', 'njp')
    ->condition('njp.uid', $uids, 'IN')
    ->fields('njp', array(
    'uid',
  ))
    ->execute()
    ->fetchCol();
}