You are here

public function views_handler_field_user::init in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 modules/user/views_handler_field_user.inc \views_handler_field_user::init()
  2. 6.2 modules/user/views_handler_field_user.inc \views_handler_field_user::init()

Override init function to provide generic option to link to user.

Overrides views_handler_field::init

File

modules/user/views_handler_field_user.inc, line 18
Definition of views_handler_field_user.

Class

views_handler_field_user
Field handler to provide simple renderer that allows linking to a user.

Code

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