function ajax_comments_nodejs_comment_update in AJAX Comments 7
Implements hook_comment_update()
File
- ajax_comments_nodejs/
ajax_comments_nodejs.module, line 24 - AJAX Comments Nodejs Integration module file
Code
function ajax_comments_nodejs_comment_update($comment) {
$authToken = !empty($_SESSION['nodejs_config']['authToken']) ? $_SESSION['nodejs_config']['authToken'] : 0;
$nodejs_comment = (object) array(
'channel' => 'ajax_comments_nodejs_' . $comment->nid,
'callback' => 'ajaxCommentsNodejs',
'authToken' => $authToken,
'action' => 'updated',
'cid' => $comment->cid,
);
nodejs_send_content_channel_message($nodejs_comment);
}