function theme_nodereference_count_formatter_nonzero in Nodereference Count 6
Theme function for 'nonzero' field formatter.
File
- ./
nodereference_count.module, line 357 - Defines a field type for counting the references to a node.
Code
function theme_nodereference_count_formatter_nonzero($element) {
$count = $element['#item']['value'];
if ($count == 0) {
return;
}
return $count;
}