You are here

function theme_rolereference_formatter_default in Role Reference 6

Theme function for 'default' rolereference field formatter.

File

./rolereference.module, line 234
Defines a field type for referencing a role. Based almost entirely on nodereference and userreference modules.

Code

function theme_rolereference_formatter_default($element) {
  $output = '';
  if (!empty($element['#item']['rid']) && is_numeric($element['#item']['rid']) && ($name = _rolereference_names($element['#item']['rid']))) {
    $output = check_plain($name);
  }
  return $output;
}