You are here

function views_handler_field_user_roles::query in Views (for Drupal 7) 6.2

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

Called to add the field to a query.

Overrides views_handler_field::query

File

modules/user/views_handler_field_user_roles.inc, line 11

Class

views_handler_field_user_roles
Field handler to provide a list of roles.

Code

function query() {
  $this
    ->add_additional_fields();
  $this->field_alias = $this->aliases['uid'];
}