function views_handler_field_accesslog_path::init
Override init function to provide generic option to link to node.
Overrides views_handler_field::init
File
-
modules/
statistics/ views_handler_field_accesslog_path.inc, line 18
Class
- views_handler_field_accesslog_path
- Provide simple renderer that turns a URL into a clickable link.
Code
public function init(&$view, &$options) {
parent::init($view, $options);
if (!empty($this->options['display_as_link'])) {
$this->additional_fields['path'] = 'path';
}
}