You are here

function views_handler_field_uid in Signup 5.2

Format a uid field as a username.

1 string reference to 'views_handler_field_uid'
_signup_views_tables in views/views.inc
Private implementation of hook_views_tables().

File

views/views.inc, line 199
Provides support for Views integration.

Code

function views_handler_field_uid($fieldinfo, $fielddata, $value, $data) {
  if (isset($value)) {
    $account = user_load(array(
      'uid' => $value,
    ));
    return theme('username', $account);
  }
}