function views_handler_field_comment_username::init

3.x views_handler_field_comment_username.inc views_handler_field_comment_username::init(&$view, &$data)
2.x 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

modules/comment/views_handler_field_comment_username.inc, line 9

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';
}