function theme_nodereference_formatter_plain in Content Construction Kit (CCK) 6
Same name and namespace in other branches
- 6.3 modules/nodereference/nodereference.module \theme_nodereference_formatter_plain()
- 6.2 modules/nodereference/nodereference.module \theme_nodereference_formatter_plain()
Theme function for 'plain' nodereference field formatter.
File
- modules/
nodereference/ nodereference.module, line 229 - Defines a field type for referencing one node from another.
Code
function theme_nodereference_formatter_plain($element) {
$output = '';
if (!empty($element['#item']['nid']) && is_numeric($element['#item']['nid']) && ($title = _nodereference_titles($element['#item']['nid']))) {
$output = check_plain($title);
}
return $output;
}