You are here

public function views_handler_field_node_path::render in Views (for Drupal 7) 7.3

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

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

modules/node/views_handler_field_node_path.inc, line 58
Definition of views_handler_field_node_path.

Class

views_handler_field_node_path
Field handler to present the path to the node.

Code

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