You are here

function views_handler_field_commentlink in Views (for Drupal 7) 5

1 string reference to 'views_handler_field_commentlink'
comment_views_default_views in modules/views_comment.inc

File

modules/views_comment.inc, line 235

Code

function views_handler_field_commentlink($fieldinfo, $fielddata, $value, $data) {
  if ($fielddata['options'] == 'nolink') {
    return check_plain($value);
  }
  return l($value, "node/{$data->nid}", NULL, NULL, "comment-{$data->comments_cid}");
}