function nodejs_subscribe_get_user_channels in Node.js integration 7
Same name and namespace in other branches
- 6 nodejs_subscribe/nodejs_subscribe.module \nodejs_subscribe_get_user_channels()
Get a list of channels this user is subscribed to.
Parameters
mixed $uid:
Return value
array
1 call to nodejs_subscribe_get_user_channels()
- nodejs_subscribe_nodejs_user_channels in nodejs_subscribe/
nodejs_subscribe.module - Implements hook_nodejs_user_channels().
File
- nodejs_subscribe/
nodejs_subscribe.module, line 84
Code
function nodejs_subscribe_get_user_channels($uid) {
return db_query('SELECT nid FROM {nodejs_subscribe_subscription} WHERE uid = :uid', array(
':uid' => $uid,
))
->fetchAll();
}