function views_handler_field_accesslog_path::init in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 modules/statistics/views_handler_field_accesslog_path.inc \views_handler_field_accesslog_path::init()
- 7.3 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';
}
}