function nodejs_subscribe_nodejs_user_channels in Node.js integration 7
Same name and namespace in other branches
- 6 nodejs_subscribe/nodejs_subscribe.module \nodejs_subscribe_nodejs_user_channels()
Implements hook_nodejs_user_channels().
File
- nodejs_subscribe/
nodejs_subscribe.module, line 49
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;
}