Index: custom_breadcrumbs.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/custom_breadcrumbs/custom_breadcrumbs.module,v
retrieving revision 1.6.2.5.2.7
diff -u -r1.6.2.5.2.7 custom_breadcrumbs.module
--- custom_breadcrumbs.module	17 May 2009 01:33:19 -0000	1.6.2.5.2.7
+++ custom_breadcrumbs.module	18 May 2009 02:28:25 -0000
@@ -103,6 +103,18 @@
 }
 
 /**
+ * Implementation of hook_form_alter().
+ */
+function custom_breadcrumbs_form_alter(&$form, $form_state, $form_id) {
+  // Provide custom breadcrumbs for comment forms associated with nodes.
+  if ($form_id == 'comment_form' && isset($form['nid']['#value'])) {
+    $node = node_load($form['nid']['#value']);
+    // Call custom_breadcrumbs_nodeapi to provide a custom_breadcrumb for this comment.
+    custom_breadcrumbs_nodeapi($node, 'alter', array(), array(1));
+  }
+}
+
+/**
  * Set custom breadcrumb. This can be used by submodules, but they could also provide their own function.
  * @param $breadcrumb
  *   The breadcrumb object
