You are here

function views_handler_comments_with_new in Views (for Drupal 7) 5

1 string reference to 'views_handler_comments_with_new'
user_views_default_views in modules/views_user.inc

File

modules/views_comment.inc, line 245

Code

function views_handler_comments_with_new($fieldinfo, $fielddata, $value, $data) {
  $comments = intval($value);
  if ($comments && ($new = comment_num_new($data->nid))) {
    $comments .= '<br />';
    $comments .= l(t('@num new', array(
      '@num' => $new,
    )), "node/{$data->nid}", NULL, NULL, 'new');
  }
  return $comments;
}