You are here

function views_handler_field_accesslog_path::render_link in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 7.3 modules/statistics/views_handler_field_accesslog_path.inc \views_handler_field_accesslog_path::render_link()
1 call to views_handler_field_accesslog_path::render_link()
views_handler_field_accesslog_path::render in modules/statistics/views_handler_field_accesslog_path.inc
Render the field.

File

modules/statistics/views_handler_field_accesslog_path.inc, line 43

Class

views_handler_field_accesslog_path
Field handler to provide simple renderer that turns a URL into a clickable link.

Code

function render_link($data, $values) {
  if (!empty($this->options['display_as_link'])) {
    $this->options['alter']['make_link'] = TRUE;
    $this->options['alter']['path'] = $this
      ->get_value($values, 'path');
    $this->options['alter']['html'] = TRUE;
  }
  return $data;
}