You are here

function plus1_comment_view in Plus 1 7

Implements hook_comment_view().

File

./plus1.module, line 447

Code

function plus1_comment_view($comment, $view_mode, $langcode) {
  if (variable_get('plus1_comment_widget_show', 0) && !isset($comment->in_preview)) {
    $comment->content['plus1_widget'] = plus1_build_comment_jquery_widget($comment->cid);
  }
}