function views_handler_field_user_picture::render

3.x views_handler_field_user_picture.inc views_handler_field_user_picture::render($values)
2.x views_handler_field_user_picture.inc views_handler_field_user_picture::render($values)

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides views_handler_field::render

File

modules/user/views_handler_field_user_picture.inc, line 18

Class

views_handler_field_user_picture
Field handler to provide simple renderer that allows using a themed user link

Code

function render($values) {
  // Fake an account object.
  $account = new stdClass();
  $account->uid = $values->{$this->aliases['uid']};
  $account->name = $values->{$this->aliases['name']};
  $account->mail = $values->{$this->aliases['mail']};
  $account->picture = $values->{$this->field_alias};

  return theme('user_picture', $account);
}