You are here

function views_handler_field_user_link::render in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 modules/user/views_handler_field_user_link.inc \views_handler_field_user_link::render()
  2. 7.3 modules/user/views_handler_field_user_link.inc \views_handler_field_user_link::render()

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides views_handler_field::render

3 methods override views_handler_field_user_link::render()
views_handler_field_contact_link::render in modules/contact/views_handler_field_contact_link.inc
Render the field.
views_handler_field_user_link_delete::render in modules/user/views_handler_field_user_link_delete.inc
Render the field.
views_handler_field_user_link_edit::render in modules/user/views_handler_field_user_link_edit.inc
Render the field.

File

modules/user/views_handler_field_user_link.inc, line 36

Class

views_handler_field_user_link
Field handler to present a link to the user.

Code

function render($values) {
  $text = !empty($this->options['text']) ? $this->options['text'] : t('view');
  $uid = $values->{$this->aliases['uid']};
  return l($text, "user/{$uid}");
}