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()
- views_handler_field_comment_link_delete::render in modules/
comment/ views_handler_field_comment_link_delete.inc - Render the field.
- views_handler_field_comment_link_edit::render in modules/
comment/ views_handler_field_comment_link_edit.inc - Render the field.
- views_handler_field_comment_link_reply::render in modules/
comment/ views_handler_field_comment_link_reply.inc - Render the field.
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']}));
}