function theme_content_taxonomy_formatter_default in Content Taxonomy 6
Same name and namespace in other branches
- 6.2 content_taxonomy.module \theme_content_taxonomy_formatter_default()
Theme function for 'default' text field formatter.
File
- ./
content_taxonomy.module, line 218 - Defines a field type for referencing a taxonomy term.
Code
function theme_content_taxonomy_formatter_default($element) {
if (!empty($element['#item']['value'])) {
$term = taxonomy_get_term($element['#item']['value']);
_content_taxonomy_localize_term($term);
return check_plain($term->name);
}
}