function views_handler_field_accesslog_path::render in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 modules/statistics/views_handler_field_accesslog_path.inc \views_handler_field_accesslog_path::render()
- 7.3 modules/statistics/views_handler_field_accesslog_path.inc \views_handler_field_accesslog_path::render()
Render the field.
Parameters
$values: The values retrieved from the database.
Overrides views_handler_field::render
File
- modules/
statistics/ views_handler_field_accesslog_path.inc, line 36
Class
- views_handler_field_accesslog_path
- Field handler to provide simple renderer that turns a URL into a clickable link.
Code
function render($values) {
$title = check_plain($values->{$this->field_alias});
if (!empty($this->options['display_as_link'])) {
return l($title, $values->{$this->aliases['path']}, array(
'html' => TRUE,
));
}
else {
return $title;
}
}