function views_handler_field_node_link::render

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

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides views_handler_field::render

File

modules/node/views_handler_field_node_link.inc, line 33

Class

views_handler_field_node_link
Field handler to present a link to the node.

Code

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