# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- similarterms\similarterms.tpl.php +++ similarterms\similarterms.tpl.php @@ -10,6 +10,7 @@ * - $display_options: * 'title_only' => 'Display titles only', * 'teaser' => 'Display titles and teaser', + * 'terms_only' => 'Display terms only', * - $items: the list. */ if ($items) { @@ -27,4 +28,17 @@ print "\n"; } } + if ($display_options == 'terms_only') { + $list = array(); + foreach ($items as $node) { + foreach ($node->taxonomy as $term) { + if (!array_key_exists($term->tid, $list)) { + $list[$term->tid] = l($term->name, 'taxonomy/term/'. $term->tid); + } + } + } + print theme('item_list', $list); + }