1 views_handler_field_user_name.inc views_handler_field_user_name::init(&$view, &$data)

Add uid in the query so we can test for anonymous if needed.

Overrides views_handler_field_user::init

File

core/modules/user/views/views_handler_field_user_name.inc, line 17
Definition of views_handler_field_user_name.

Class

views_handler_field_user_name
Field handler to provide simple renderer that allows using a themed user link.

Code

function init(&$view, &$data) {
  parent::init($view, $data);
  if (!empty($this->options['overwrite_anonymous']) || !empty($this->options['format_username'])) {
    $this->additional_fields['uid'] = 'uid';
  }
}