Skip navigation
Help

theme_uc_uid

7 uc_store.theme.inc theme_uc_uid($variables)

Displays a username in the standard format and with consistent markup.

Parameters

$variables: An associative array containing:

  • uid: A user ID value.

Related topics

6 theme calls to theme_uc_uid()

File

ubercart/uc_store/uc_store.theme.inc, line 57
Theme functions for the uc_store module.

Code

function theme_uc_uid($variables) {
  if ($variables['uid']) {
    return theme('username', array('account' => user_load($variables['uid'])));
  }
  else {
    return '-';
  }
}