Index: taxonomy_breadcrumb.info
===================================================================
RCS file: taxonomy_breadcrumb.info
diff -N taxonomy_breadcrumb.info
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ taxonomy_breadcrumb.info	9 Jan 2007 22:13:30 -0000
@@ -0,0 +1,6 @@
+; $Id$
+name = Taxonomy Breadcrumb
+description = Enables taxonomy based breadcrumbs and allows for node assosciations with taxonomy terms.
+version = 1.0x-dev
+dependencies = taxonomy
+package = Taxonomy
Index: taxonomy_breadcrumb.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_breadcrumb/taxonomy_breadcrumb.install,v
retrieving revision 1.4
diff -U3 -r1.4 taxonomy_breadcrumb.install
--- taxonomy_breadcrumb.install	11 Nov 2006 21:48:15 -0000	1.4
+++ taxonomy_breadcrumb.install	9 Jan 2007 22:13:30 -0000
@@ -11,6 +11,7 @@
  * Implementation of hook_install().
  */
 function taxonomy_breadcrumb_install() {
+  drupal_set_message('Installing taxonomy_breadcrumb.');
   switch ($GLOBALS['db_type']) {
     case 'mysql':
     case 'mysqli':
@@ -19,7 +20,7 @@
                 path varchar(128) NOT NULL default '',
                 PRIMARY KEY (vid)
                 ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
-
+

       db_query("CREATE TABLE {taxonomy_breadcrumb_term} (
                 tid int(10) unsigned NOT NULL default '0',
@@ -43,3 +44,9 @@
       break;
   }
 }
+
+function taxonomy_breadcrumb_uninstall() {
+  drupal_set_message('Uninstalling taxonomy_breadcrumb.');
+  db_query('DROP TABLE {taxonomy_breadcrumb_vocabulary}');
+  db_query('DROP TABLE {taxonomy_breadcrumb_term}');
+}
\ No newline at end of file
Index: taxonomy_breadcrumb.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_breadcrumb/taxonomy_breadcrumb.module,v
retrieving revision 1.4
diff -U3 -r1.4 taxonomy_breadcrumb.module
--- taxonomy_breadcrumb.module	15 Oct 2006 20:35:12 -0000	1.4
+++ taxonomy_breadcrumb.module	9 Jan 2007 22:13:30 -0000
@@ -140,28 +140,27 @@
 }

 /**
- * Implementation of hook_settings().
+ * Implementation of hook_menu().
  */
-function taxonomy_breadcrumb_settings() {
+function taxonomy_breadcrumb_menu($may_cache) {
+  $items = array();

-  $form['info']['taxonomy_breadcrumb_info'] = array('#type' => 'item',
-    '#value' => t('<p>The taxonomy_breadcrumb module generates taxonomy based breadcrumbs on node pages, where the breadcrumbs link to the normal taxonomy/term pages or to administrator defined pages.  Breadcrumbs take the following form:</p>
-                  <p>[HOME] >> [VOCABULARY] >> TERM >> [TERM] ...</p>
-                  <p><ul>
-                  <li>The text displayed for HOME is configurable below.  The HOME breadcrumb (if present) will link to the homepage.  If the HOME breadcrumb text is not defined (blank), it will not appear in the breadcrumb trail.</li>
-                  <li>The VOCABULARY breadcrumb (if present) will link to an administrator defined page (node).  If the VOCABULARY does not have an administrator defined page, it will not appear in the breadcrumb trail. This can be configured on the add/edit vocabulary pages within %tax_link (taxonomy).</li>
-                  <li>Each TERM breadcrumb will link to either (1) taxonomy/term/tid by default, or (2) an administrator defined page (node) if one is defined for the term.  This can be configured on the add/edit term pages within %tax_link (taxonomy).</li>
-                  </ul></p>
-                  Examples:
-                  <ul>
-                  <li>home >> term >> term</li>
-                  <li>mysite >> term >> term</li>
-                  <li>home >> vocabulary >> term >> term</li>
-                  <li>vocabulary >> term >> term</li>
-                  </ul><p></p>', array('%tax_link' => l('administer >> categories', 'admin/taxonomy'))),
-  );
+  if ($may_cache) {
+    $items[] = array(
+      'path' => 'admin/settings/taxonomy-breadcrumb',
+      'title' => t('Taxonomy Breadcrumb'),
+      'description' => t('Configure how taxonomy based breadcrumbs are displayed.'),
+      'callback' => 'drupal_get_form',
+      'callback arguments' => array('taxonomy_breadcrumb_admin_settings'),
+      'access' => user_access('administer site configuration'),
+      'type' => MENU_NORMAL_ITEM, // optional
+    );
+  }

+  return $items;
+}

+function taxonomy_breadcrumb_admin_settings() {
   $form['settings'] = array(
     '#type' => 'fieldset',
     '#title' => t('Basic Settings'),
@@ -203,9 +202,9 @@
   // the function node_get_base (the function node_get_names provides all names, but not bases).
   // Hack might be a strong word to describe the next few lines of code, but they do the job.
   $node_bases = array();
-  $node_names = module_invoke_all('node_info');
-  foreach ($node_names as $value) {
-    $node_bases[] = $value['base'];
+  $node_types = node_get_types();
+  foreach ($node_types as $node_type) {
+    $node_bases[] = $node_type->type;
   }

   $form['advanced']['taxonomy_breadcrumb_node_types'] = array(
@@ -216,7 +215,7 @@
     '#weight' => 20,
   );

-  return $form;
+  return system_settings_form($form);
 }

 /**
@@ -237,10 +236,23 @@

   switch ($section) {
     case 'admin/help#taxonomy_breadcrumb':
-      $output .= t('<p>See %link.</p>', array('%link' => l('admin/settings/taxonomy_breadcrumb', 'admin/settings/taxonomy_breadcrumb')));
+      $output .= t('<p>See %link.</p>', array('%link' => l('admin/settings/taxonomy-breadcrumb', 'admin/settings/taxonomy-breadcrumb')));
       break;
-    case 'admin/modules#description':
-      $output .= t('Enables taxonomy based breadcrumbs and allows for node assosciations with taxonomy terms.');
+    case 'admin/settings/taxonomy-breadcrumb':
+      $output .= t('<p>The taxonomy_breadcrumb module generates taxonomy based breadcrumbs on node pages, where the breadcrumbs link to the normal taxonomy/term pages or to administrator defined pages.  Breadcrumbs take the following form:</p>
+                  <p>[HOME] >> [VOCABULARY] >> TERM >> [TERM] ...</p>
+                  <p><ul>
+                  <li>The text displayed for HOME is configurable below.  The HOME breadcrumb (if present) will link to the homepage.  If the HOME breadcrumb text is not defined (blank), it will not appear in the breadcrumb trail.</li>
+                  <li>The VOCABULARY breadcrumb (if present) will link to an administrator defined page (node).  If the VOCABULARY does not have an administrator defined page, it will not appear in the breadcrumb trail. This can be configured on the add/edit vocabulary pages within !tax_link (taxonomy).</li>
+                  <li>Each TERM breadcrumb will link to either (1) taxonomy/term/tid by default, or (2) an administrator defined page (node) if one is defined for the term.  This can be configured on the add/edit term pages within !tax_link (taxonomy).</li>
+                  </ul></p>
+                  Examples:
+                  <ul>
+                  <li>home >> term >> term</li>
+                  <li>mysite >> term >> term</li>
+                  <li>home >> vocabulary >> term >> term</li>
+                  <li>vocabulary >> term >> term</li>
+                  </ul>', array('!tax_link' => l('administer >> categories', 'admin/content/taxonomy')));
       break;
   }
   return $output;
