function realtime_node_notification in Node.js integration 6
Callback to handle node notifications.
File
- nodejs_actions/
nodejs_actions.module, line 212
Code
function realtime_node_notification($context = array(), $op) {
global $user;
$userlink = l($user->name, 'user/' . $user->uid);
$link = l($context->title, 'node/' . $context->nid);
$body = t('The user !user did %action a node !link', array(
'!user' => $userlink,
'%action' => t($op['op']),
'!link' => $link,
));
nodejs_actions_enqueue_message(t('Node Activity'), $body);
}