You are here

public function views_handler_field_accesslog_path::init in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 modules/statistics/views_handler_field_accesslog_path.inc \views_handler_field_accesslog_path::init()
  2. 6.2 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 18
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 init(&$view, &$options) {
  parent::init($view, $options);
  if (!empty($this->options['display_as_link'])) {
    $this->additional_fields['path'] = 'path';
  }
}