public function views_handler_field_accesslog_path::render_link in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.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 59 - Definition of views_handler_field_accesslog_path.
Class
- views_handler_field_accesslog_path
- Provide simple renderer that turns a URL into a clickable link.
Code
public 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;
}