1 views_handler_field_user.inc | views_handler_field_user::init(&$view, &$data) |
Override init function to provide generic option to link to user.
Overrides views_handler_field::init
File
- core/
modules/ user/ views/ views_handler_field_user.inc, line 16 - Definition of views_handler_field_user.
Class
- views_handler_field_user
- Field handler to provide simple renderer that allows linking to a user.
Code
function init(&$view, &$data) {
parent::init($view, $data);
if (!empty($this->options['link_to_user'])) {
$this->additional_fields['uid'] = 'uid';
}
}