You are here

function theme_userreference_formatter_plain in Content Construction Kit (CCK) 6.3

Same name and namespace in other branches
  1. 6 modules/userreference/userreference.module \theme_userreference_formatter_plain()
  2. 6.2 modules/userreference/userreference.module \theme_userreference_formatter_plain()

Theme function for 'plain' userreference field formatter.

File

modules/userreference/userreference.module, line 263
Defines a field type for referencing a user from a node.

Code

function theme_userreference_formatter_plain($element) {
  $output = '';
  if (isset($element['#item']['uid']) && ($account = user_load(array(
    'uid' => $element['#item']['uid'],
  )))) {
    $output = $account->name;
  }
  return $output;
}