function theme_userreference_formatter_default in Content Construction Kit (CCK) 6
Same name and namespace in other branches
- 6.3 modules/userreference/userreference.module \theme_userreference_formatter_default()
- 6.2 modules/userreference/userreference.module \theme_userreference_formatter_default()
Theme function for 'default' userreference field formatter.
File
- modules/
userreference/ userreference.module, line 160 - Defines a field type for referencing a user from a node.
Code
function theme_userreference_formatter_default($element) {
$output = '';
if (isset($element['#item']['uid']) && ($account = user_load(array(
'uid' => $element['#item']['uid'],
)))) {
$output = theme('username', $account);
}
return $output;
}