function views_handler_field_accesslog_path::init
3.x views_handler_field_accesslog_path.inc | views_handler_field_accesslog_path::init(&$view, &$options) |
2.x views_handler_field_accesslog_path.inc | views_handler_field_accesslog_path::init(&$view, $options) |
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 17 - 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 init(&$view, &$options) {
parent::init($view, $options);
if (!empty($this->options['display_as_link'])) {
$this->additional_fields['path'] = 'path';
}
}