function views_handler_field_comment_username::init in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 modules/comment/views_handler_field_comment_username.inc \views_handler_field_comment_username::init()
- 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 11
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';
}