Index: term_display.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/term_display/term_display.module,v
retrieving revision 1.10
diff -U3 -r1.10 term_display.module
--- term_display.module	26 Feb 2009 20:55:48 -0000	1.10
+++ term_display.module	28 Feb 2009 14:44:15 -0000
@@ -50,25 +50,6 @@
 
 }
 
-function term_display_theme() {
-  return array(
-    'term_display_list' => array(
-      'file' => 'term_display.module',
-      'arguments' => array(
-        'vocabulary' => NULL,
-        'terms' => NULL,
-      ),
-    ),
-    'term_display_custom' => array(
-      'file' => 'term_display.module',
-      'arguments' => array(
-        'vocabulary' => NULL,
-        'terms' => NULL,
-      ),
-    ),
-  );
-}
-
 /**
  * Implementation of hook_taxonomy().
  */
@@ -166,15 +147,38 @@
   }
 }
 
+
+/**
+ * Implementation of hook_theme().
+ */
+function term_display_theme() {
+  return array(
+    'term_display_list' => array(
+      'file' => 'term_display.module',
+      'arguments' => array(
+        'vocabulary' => NULL,
+        'terms' => NULL,
+      ),
+    ),
+    'term_display_custom' => array(
+      'file' => 'term_display.module',
+      'arguments' => array(
+        'vocabulary' => NULL,
+        'terms' => NULL,
+      ),
+    ),
+  );
+}
+
 /**
  * Theme terms as a list.
  */
 function theme_term_display_list($vocabulary, $terms) {
-  foreach($terms as $term) {
-    $term_links[] = l($term->name, taxonomy_term_path($term));
+  $links = array();
+  foreach ($terms as $term) {
+    $links[] = l($term->name, taxonomy_term_path($term));
   }
- 
-  return theme('item_list', $term_links, check_plain($vocabulary->name), 'ul', array('class' => 'vocabulary-list'));    
+  return theme('item_list', $links, check_plain($vocabulary->name), 'ul', array('class' => 'vocabulary-list'));
 }
 
 /**
@@ -182,9 +186,8 @@
  */
 function theme_term_display_custom($vocabulary, $terms) {
   $links = array();
-  foreach($terms as $term) {
+  foreach ($terms as $term) {
     $links[] = l($term->name, taxonomy_term_path($term));
   }
-  return '<h3 class="title">' . check_plain($vocabulary->name) .': '. implode(', ', $links) .'</h3>';
-
+  return '<h3 class="title">'. check_plain($vocabulary->name) .': '. implode(', ', $links) .'</h3>';
 }
