function nodejs_subscribe_nodejs_user_channels in Node.js integration 6
Same name and namespace in other branches
- 7 nodejs_subscribe/nodejs_subscribe.module \nodejs_subscribe_nodejs_user_channels()
Implements hook_nodejs_user_channels().
File
- nodejs_subscribe/
nodejs_subscribe.module, line 136
Code
function nodejs_subscribe_nodejs_user_channels($account) {
$channels = array();
foreach (nodejs_subscribe_get_user_channels($account->uid) as $subscription) {
$channels[] = 'nodejs_subscribe_node_' . $subscription->nid;
}
return $channels;
}