summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.pages.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-12 13:59:56 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-12 13:59:56 +0000
commit2bc9e50dbaa83df96090172b3fc682bd9a291588 (patch)
treee698368b8fa1a11e46f47924f76fbd4a526648f5 /modules/taxonomy/taxonomy.pages.inc
parentd0936908cbf2f8b6c873e9b4d5a2abe279eb8ab7 (diff)
downloadbrdo-2bc9e50dbaa83df96090172b3fc682bd9a291588.tar.gz
brdo-2bc9e50dbaa83df96090172b3fc682bd9a291588.tar.bz2
- Patch #413192 by catch et al: make taxonomy terms fieldable (not to be confused with taxonomy terms as fields).
Diffstat (limited to 'modules/taxonomy/taxonomy.pages.inc')
-rw-r--r--modules/taxonomy/taxonomy.pages.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.pages.inc b/modules/taxonomy/taxonomy.pages.inc
index 1e77f40ab..bbf31178c 100644
--- a/modules/taxonomy/taxonomy.pages.inc
+++ b/modules/taxonomy/taxonomy.pages.inc
@@ -50,9 +50,11 @@ function taxonomy_term_page($terms, $depth = 0, $op = 'page') {
drupal_add_css(drupal_get_path('module', 'taxonomy') . '/taxonomy.css');
$build = array();
- // Only display the description if we have a single term, to avoid clutter and confusion.
+ // Only display fields if we have a single term, to avoid clutter and
+ // confusion.
if (count($tids) == 1) {
$term = taxonomy_term_load($tids[0]);
+ $build += field_attach_view('taxonomy_term', $term);
if (!empty($term->description)) {
$build['term_description'] = array(
'#markup' => filter_xss_admin($term->description),