1 views_handler_field_comment_username.inc views_handler_field_comment_username::init(&$view, &$data)

Override init function to add uid and homepage fields.

Overrides views_handler_field::init

File

core/modules/comment/views/views_handler_field_comment_username.inc, line 17
Definition of views_handler_field_comment_username.

Class

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

Code

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