function views_handler_field_node_link::render_link

1 call to views_handler_field_node_link::render_link()
views_handler_field_node_link::render in modules/node/views_handler_field_node_link.inc
Render the field.
4 methods override views_handler_field_node_link::render_link()
views_handler_field_node_link_delete::render_link in modules/node/views_handler_field_node_link_delete.inc
Renders the link.
views_handler_field_node_link_edit::render_link in modules/node/views_handler_field_node_link_edit.inc
Renders the link.
views_handler_field_node_link_translate::render_link in modules/translation/views_handler_field_node_link_translate.inc
views_handler_field_node_revision_link::render_link in modules/node/views_handler_field_node_revision_link.inc

File

modules/node/views_handler_field_node_link.inc, line 52

Class

views_handler_field_node_link
Field handler to present a link to the node.

Code

public 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;
    }
}