You are here

function views_handler_field_comment_username::init in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 modules/comment/views_handler_field_comment_username.inc \views_handler_field_comment_username::init()
  2. 7.3 modules/comment/views_handler_field_comment_username.inc \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 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';
}