Stripping CVS keywords
[project/views.git] / modules / user / views_handler_field_user_picture.inc
1 <?php
2
3 /**
4 * Field handler to provide simple renderer that allows using a themed user link
5 */
6 class views_handler_field_user_picture extends views_handler_field {
7 function construct() {
8 parent::construct();
9 $this->additional_fields['uid'] = 'uid';
10 $this->additional_fields['name'] = 'name';
11 }
12
13 function render($values) {
14 // Fake an account object.
15 $account = new stdClass();
16 $account->uid = $values->{$this->aliases['uid']};
17 $account->name = $values->{$this->aliases['name']};
18 $account->picture = $values->{$this->field_alias};
19
20 return theme('user_picture', $account);
21 }
22 }