function views_handler_field_user::render_link
3.x views_handler_field_user.inc | views_handler_field_user::render_link($data, $values) |
2.x views_handler_field_user.inc | views_handler_field_user::render_link($data, $values) |
2 calls to views_handler_field_user::render_link()
- views_handler_field_user::render in modules/
user/ views_handler_field_user.inc - Render the field.
- views_handler_field_user_mail::render_link in modules/
user/ views_handler_field_user_mail.inc
3 methods override views_handler_field_user::render_link()
File
- modules/
user/ views_handler_field_user.inc, line 43 - 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 render_link($data, $values) {
if (!empty($this->options['link_to_user']) && user_access('access user profiles') && ($uid = $this->get_value($values, 'uid')) && $data !== NULL && $data !== '') {
$this->options['alter']['make_link'] = TRUE;
$this->options['alter']['path'] = "user/" . $uid;
}
return $data;
}