function views_handler_field_comment_username::init

Override init function to add uid and homepage fields.

Overrides views_handler_field::init

File

modules/comment/views_handler_field_comment_username.inc, line 18

Class

views_handler_field_comment_username
Field handler to allow linking to a user account or homepage.

Code

public function init(&$view, &$data) {
    parent::init($view, $data);
    $this->additional_fields['uid'] = 'uid';
    $this->additional_fields['homepage'] = 'homepage';
}