You are here

function theme_nodereference_formatter_default in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 6.3 modules/nodereference/nodereference.module \theme_nodereference_formatter_default()
  2. 6.2 modules/nodereference/nodereference.module \theme_nodereference_formatter_default()

Theme function for 'default' nodereference field formatter.

1 theme call to theme_nodereference_formatter_default()
theme_nodereference_formatter_full_teaser in modules/nodereference/nodereference.module
Proxy theme function for 'full' and 'teaser' nodereference field formatters.

File

modules/nodereference/nodereference.module, line 218
Defines a field type for referencing one node from another.

Code

function theme_nodereference_formatter_default($element) {
  $output = '';
  if (!empty($element['#item']['nid']) && is_numeric($element['#item']['nid']) && ($title = _nodereference_titles($element['#item']['nid']))) {
    $output = l($title, 'node/' . $element['#item']['nid']);
  }
  return $output;
}