You are here

function views_handler_field_commentlink_with_mark in Views (for Drupal 7) 5

File

modules/views_comment.inc, line 258

Code

function views_handler_field_commentlink_with_mark($fieldinfo, $fielddata, $value, $data) {
  if ($fielddata['options'] == 'nolink') {
    $link = check_plain($value);
  }
  else {
    $link = l($value, "node/{$data->nid}", NULL, NULL, "comment-{$data->comments_cid}");
  }
  return $link . ' ' . theme('mark', node_mark($data->nid, $data->comments_timestamp));
}