function views_handler_field_user_picture::render in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 modules/user/views_handler_field_user_picture.inc \views_handler_field_user_picture::render()
- 7.3 modules/user/views_handler_field_user_picture.inc \views_handler_field_user_picture::render()
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);
}