You are here

function votingapi_views_handler_field_username in Voting API 6

Same name and namespace in other branches
  1. 5 votingapi_views.inc \votingapi_views_handler_field_username()
1 string reference to 'votingapi_views_handler_field_username'
votingapi_views_tables in ./votingapi_views.inc

File

./votingapi_views.inc, line 222

Code

function votingapi_views_handler_field_username($fieldinfo, $fielddata, $value, $data) {
  if ($value === NULL) {
    return '';
  }
  else {
    $user = user_load(array(
      'uid' => $value,
    ));
    return theme('username', $user);
  }
}