function views_handler_field_accesslog_path::init

Same name in other branches
  1. 7.x-3.x modules/statistics/views_handler_field_accesslog_path.inc \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 11

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