You are here

public function views_handler_field_user_roles::construct in Views (for Drupal 7) 7.3

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

Construct a new field handler.

Overrides views_handler_field::construct

File

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

Class

views_handler_field_user_roles
Field handler to provide a list of roles.

Code

public function construct() {
  parent::construct();
  $this->additional_fields['uid'] = array(
    'table' => 'users',
    'field' => 'uid',
  );
}