function nodejs_subscribe_comment_insert in Node.js integration 7
Same name and namespace in other branches
- 6 nodejs_subscribe/nodejs_subscribe.module \nodejs_subscribe_comment_insert()
Implements hook_comment_insert().
File
- nodejs_subscribe/
nodejs_subscribe.module, line 40
Code
function nodejs_subscribe_comment_insert($comment) {
if (nodejs_subscribe_is_node_subscribed_to($comment->nid)) {
nodejs_subscribe_send_notification(node_load($comment->nid), 'commented on', array(
'fragment' => 'comment-' . $comment->cid,
));
}
}