You are here

function nodejs_subscribe_comment_insert in Node.js integration 6

Same name and namespace in other branches
  1. 7 nodejs_subscribe/nodejs_subscribe.module \nodejs_subscribe_comment_insert()

Implements hook_comment_insert().

File

nodejs_subscribe/nodejs_subscribe.module, line 127

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,
    ));
  }
}