function views_handler_field_user_name::init
3.x views_handler_field_user_name.inc | views_handler_field_user_name::init(&$view, &$data) |
2.x 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
- 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';
}
}