You are here

function views_handler_field_node_link::render in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 modules/node/views_handler_field_node_link.inc \views_handler_field_node_link::render()
  2. 7.3 modules/node/views_handler_field_node_link.inc \views_handler_field_node_link::render()

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides views_handler_field::render

5 methods override views_handler_field_node_link::render()
views_handler_field_node_link_delete::render in modules/node/views_handler_field_node_link_delete.inc
Render the field.
views_handler_field_node_link_edit::render in modules/node/views_handler_field_node_link_edit.inc
Render the field.
views_handler_field_node_link_translate::render in modules/translation/views_handler_field_node_link_translate.inc
Render the field.
views_handler_field_node_revision_link_delete::render in modules/node/views_handler_field_node_revision_link_delete.inc
Render the field.
views_handler_field_node_revision_link_revert::render in modules/node/views_handler_field_node_revision_link_revert.inc
Render the field.

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}");
}