--- taxonomy_breadcrumb.module.~1.5.2.9.~	2007-03-15 18:37:31.000000000 -0500
+++ taxonomy_breadcrumb.module	2009-01-12 14:15:06.000000000 -0600
@@ -198,20 +198,23 @@
     '#weight' => 10,
   );
   
-  // Get all of the node types enabled.
-  $node_bases = array();
-  $node_types = node_get_types();
-  foreach ($node_types as $node_type) {
-    $node_bases[] = $node_type->type;
+  $tb_types = (array) variable_get('taxonomy_breadcrumb_node_types', TAXONOMY_BREADCRUMB_NODE_TYPES_DEFAULT);
+  $default = array();
+  foreach ($tb_types as $index => $value) {
+    if ($value) {
+      $default[] = $index;
+    }
   }
 
   $form['advanced']['taxonomy_breadcrumb_node_types'] = array(
-    '#type' => 'textfield',
-    '#title' => t('Node types to include or exclude'),
-    '#default_value' => variable_get('taxonomy_breadcrumb_node_types', TAXONOMY_BREADCRUMB_NODE_TYPES_DEFAULT),
-    '#description' => t('Enter a list of node types to include or exclude applying taxonomy based breadcrumbs to.  Separate multiple values with spaces. <p>Node types currently enabled:') . '<ul><li>' . implode($node_bases, '</li><li>') . '</li></ul></p>',
-    '#weight' => 20,
-  ); 
+    '#type'           => 'checkboxes',
+    '#multiple'       => TRUE,
+    '#title'          => t('Node types to include or exclude'),
+    '#default_value'  => $default,
+    '#options'        => array_map('check_plain', node_get_types('names')),
+    '#description'    => t('A list of node types to include or exclude applying taxonomy based breadcrumbs to.'),
+    '#weight'         => 20,
+  );
 
   return system_settings_form($form);
 }
@@ -225,7 +228,7 @@
   if ($op == 'view' && $a4 && !drupal_is_front_page()) {
   
     // See if the node type of the current node is part of the node types listed on the advanced settings page.
-    $array_of_types = explode(' ', variable_get('taxonomy_breadcrumb_node_types', TAXONOMY_BREADCRUMB_NODE_TYPES_DEFAULT));
+    $array_of_types = array_filter((array)variable_get('taxonomy_breadcrumb_node_types', TAXONOMY_BREADCRUMB_NODE_TYPES_DEFAULT));
     $in_list = in_array($node->type, $array_of_types);
   
     // if the node type IS IN     the node types list and the list IS     inclusive OR 
