function realtime_og_user_update_action in Node.js integration 6
Callback to handle nodejs notification when a changes their subscription to a group.
File
- nodejs_actions/
nodejs_actions.module, line 284
Code
function realtime_og_user_update_action($hook, $context = array()) {
$link = l($context->name, 'user/' . $context->uid);
$group = l($context['node']->title, 'node/' . $context['node']->nid);
$body = t('This user !link has changed his subscription to the group !group.', array(
'!link' => $link,
'!group' => $group,
));
nodejs_actions_enqueue_message(t('Group activity'), $body);
}