function theme_uc_uid in Ubercart 7.3
Displays a username in the standard format and with consistent markup.
Parameters
$variables: An associative array containing:
- uid: A user ID value.
6 theme calls to theme_uc_uid()
- uc_op_admin_comments_view_table in uc_order/
uc_order.order_pane.inc - Builds the order admin comments table.
- uc_op_order_comments_view_table in uc_order/
uc_order.order_pane.inc - Builds the order comments table.
- uc_order_log in uc_order/
uc_order.admin.inc - Displays a log of changes made to an order.
- uc_order_pane_admin_comments in uc_order/
uc_order.order_pane.inc - Handles the "Admin Comments" order pane.
- uc_order_pane_callback in uc_order/
uc_order.api.php - Builds and processes an order pane defined by hook_uc_order_pane().
File
- 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 '-';
}
}