You are here

function views_term_path_handler_field_path::render in Views Term Path 7

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

./views_term_path_handler_field_path.inc, line 46
Handler for term path field.

Class

views_term_path_handler_field_path
Field handler to present the path to the term.

Code

function render($values) {
  $tid = $this
    ->get_value($values, 'tid');
  if (!$tid) {
    return '';
  }
  return url("taxonomy/term/{$tid}", array(
    'absolute' => $this->options['absolute'],
  ));
}