function views_handler_field_comment::init

Override init function to provide generic option to link to comment.

Overrides views_handler_field::init

File

modules/comment/views_handler_field_comment.inc, line 18

Class

views_handler_field_comment
Field handler to allow linking to a comment.

Code

public function init(&$view, &$options) {
    parent::init($view, $options);
    if (!empty($this->options['link_to_comment'])) {
        $this->additional_fields['cid'] = 'cid';
        $this->additional_fields['nid'] = 'nid';
    }
}