function views_handler_field_comment_link::render

3.x views_handler_field_comment_link.inc views_handler_field_comment_link::render($values)
2.x views_handler_field_comment_link.inc views_handler_field_comment_link::render($values)

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides views_handler_field::render

3 methods override views_handler_field_comment_link::render()

File

modules/comment/views_handler_field_comment_link.inc, line 32

Class

views_handler_field_comment_link
Base field handler to present a link.

Code

function render($values) {
  $text = !empty($this->options['text']) ? $this->options['text'] : t('view');
  return l($text, "node/" . $values->{$this->aliases['nid']}, array('html' => TRUE, 'fragment' => "comment-" . $values->{$this->aliases['cid']}));
}