You are here

function views_handler_field_node_path::render in Views (for Drupal 7) 6.3

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

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides views_handler_field::render

File

modules/node/views_handler_field_node_path.inc, line 37

Class

views_handler_field_node_path
Field handler to present the path to the node.

Code

function render($values) {
  $nid = $this
    ->get_value($values, 'nid');
  return url("node/{$nid}", array(
    'absolute' => $this->options['absolute'],
  ));
}