function views_handler_field_accesslog_path::render_link

3.x views_handler_field_accesslog_path.inc views_handler_field_accesslog_path::render_link($data, $values)
1 call to views_handler_field_accesslog_path::render_link()

File

modules/statistics/views_handler_field_accesslog_path.inc, line 49
Definition of views_handler_field_accesslog_path.

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