function nodejs_subscribe_get_user_channels in Node.js integration 6
Same name and namespace in other branches
- 7 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 171
Code
function nodejs_subscribe_get_user_channels($uid) {
return db_fetch_object(db_query('SELECT nid FROM {nodejs_subscribe_subscription} WHERE uid = %d', $uid));
}