You are here

function node_field_taxonomy_formatter in Node Field 7.2

Formatter for taxonomy field.

1 string reference to 'node_field_taxonomy_formatter'
node_field_types_info in includes/node_field.field.inc
Node field types info.

File

includes/node_field.field.inc, line 544
Field types, settings, widget and formatters.

Code

function node_field_taxonomy_formatter($node_field) {
  if ($node_field['value']) {
    $term = taxonomy_term_load($node_field['value']);
    $link = l($term->name, 'taxonomy/term/' . $term->tid);
    return $link;
  }
}