function views_handler_field_user_name::init

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

Overrides views_handler_field_user::init

File

modules/user/views_handler_field_user_name.inc, line 11

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'])) {
        $this->additional_fields['uid'] = 'uid';
    }
}