1 views_handler_field_user_link.inc views_handler_field_user_link::render_link($data, $values)

File

core/modules/user/views/views_handler_field_user_link.inc, line 48
Definition of views_handler_field_user_link.

Class

views_handler_field_user_link
Field handler to present a link to the user.

Code

function render_link($data, $values) {
  $text = !empty($this->options['text']) ? $this->options['text'] : t('view');

  $this->options['alter']['make_link'] = TRUE;
  $this->options['alter']['path'] = "user/" . $data;

  return $text;
}