? nodes_listing.patch
Index: taxonomy_context.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_context/taxonomy_context.info,v
retrieving revision 1.1
diff -u -r1.1 taxonomy_context.info
--- taxonomy_context.info	16 Jan 2007 22:56:35 -0000	1.1
+++ taxonomy_context.info	25 Apr 2007 16:54:17 -0000
@@ -1,4 +1,4 @@
 ; $Id: taxonomy_context.info,v 1.1 2007/01/16 22:56:35 nedjo Exp $
 name = Taxonomy context
 description = Adds description and child term information to taxonomy term pages, provides vocabulary pages, and generates a context-sensitive menu block for each vocabulary.
-version = "$Name:  $"
+version = "$Name: DRUPAL-5 $"
Index: taxonomy_context.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_context/taxonomy_context.module,v
retrieving revision 1.72.2.2
diff -u -r1.72.2.2 taxonomy_context.module
--- taxonomy_context.module	23 Jan 2007 04:49:44 -0000	1.72.2.2
+++ taxonomy_context.module	25 Apr 2007 16:54:18 -0000
@@ -43,6 +43,13 @@
       'access' => user_access('access content'),
       'type' => MENU_SUGGESTED_ITEM,
     );
+    $items[] = array(
+      'path' => 'taxonomy/vocabulary_nodes',
+      'title' => t('Nodes in Vocabulary'),
+      'callback' => 'taxonomy_context_vocabulary_nodes',
+      'access' => user_access('access content'),
+      'type' => MENU_SUGGESTED_ITEM,
+    );
   }
   else {
     static $taxonomy_context_css_inserted = FALSE;
@@ -317,6 +324,26 @@
 /**
  * Menu callback: display a vocabulary's page.
  */
+function taxonomy_context_vocabulary_nodes() {
+
+  $vid = arg(2);
+  if(!is_numeric($vid)) {
+    return '';
+  }
+  $vocabulary = taxonomy_get_vocabulary($vid);
+  drupal_set_title(check_plain($vocabulary->name));
+
+  $tids = taxonomy_context_vocabulary_children($vid);
+  $result = taxonomy_select_nodes($tids);
+  $output .= taxonomy_render_nodes($result);
+
+  return $output;
+}
+
+
+/**
+ * Menu callback: display a vocabulary's page.
+ */
 function taxonomy_context_vocabulary_page() {
 
   $vid = arg(2);
@@ -361,6 +388,7 @@
       $output .= theme('taxonomy_context_vocabulary', $vocabulary);
     }
   }
+  
 
   return $output;
 }
@@ -616,4 +644,4 @@
   }
   $output .= "</ul>\n";
   return $output;
-}
\ No newline at end of file
+}
