? diff
? guidelines.position.patch
? sorting.directory.patch
Index: directory.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/directory/directory.module,v
retrieving revision 1.11.2.8
diff -u -p -r1.11.2.8 directory.module
--- directory.module	18 May 2007 06:35:36 -0000	1.11.2.8
+++ directory.module	18 May 2007 06:51:12 -0000
@@ -408,14 +408,15 @@ function directory_display_category($tid
 /**
  * Display the directory views
  */
-function directory_display_home_category($vid, $tid = 0) {
+function directory_display_home_category($vid) {
   $tree = taxonomy_get_tree($vid);
   $vocabulary = taxonomy_get_vocabulary($vid);
   $numset   = count($tree);
+
+  //FIXME: $plit is the wrong value if empty terms are not displayed. But I might change the way the terms are listed anyway. beginner. 
   $split    = floor($numset / 2);
   if ($numset == 0) return NULL;
 
-  if ($tid == 0) { //Special formatting for the Root level.
 
     $output .= "<div class=\"directory-home-vocabulary\" id=\"directory-vid-$vocabulary->vid\">\n";
     //$output .= "<h2 class=\"category\"><span>$vocabulary->name</span></h2>\n";
@@ -465,16 +466,6 @@ function directory_display_home_category
     $output .= theme('table', $header, $row, array('class' => 'directory-resources'));
 
 
-  }
-  else { //General category listing
-    $output = "<h2>". t('Category') ."</h2>\n";
-    $output .= "<ul class=\"directory-child-vocabulary\">\n";
-    foreach ($taxonomy as $term) {
-      $output .= "<li>". l($term->name, "directory/$term->tid") ."</li>\n";
-      $i++;
-    }
-    $output .= "</ul>\n";
-  }
   $output .= '</div>';
   return $output;
 }
