You are here

function views_handler_field_userpic in Views (for Drupal 7) 5

1 string reference to 'views_handler_field_userpic'
user_views_tables in modules/views_user.inc
This include file implements views functionality on behalf of user.module

File

modules/views_user.inc, line 239

Code

function views_handler_field_userpic($fieldinfo, $fielddata, $value, $data) {
  $account = user_load(array(
    'uid' => $value,
  ));
  if ($account !== FALSE) {
    return theme('user_picture', $account);
  }
}