1 views_handler_field_node_link.inc views_handler_field_node_link::render_link($node, $values)

File

core/modules/node/views/views_handler_field_node_link.inc, line 40
Definition of views_handler_field_node_link.

Class

views_handler_field_node_link
Field handler to present a link to the node.

Code

function render_link($node, $values) {
  if (node_access('view', $node)) {
    $this->options['alter']['make_link'] = TRUE;
    $this->options['alter']['path'] = "node/$node->nid";
    $text = !empty($this->options['text']) ? $this->options['text'] : t('view');
    return $text;
  }
}