You are here

function views_handler_field_user_name::init in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 modules/user/views_handler_field_user_name.inc \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 9

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';
  }
}