? 627792_cb_preprocess.patch
? CHANGELOG.txt
? FAQ.txt
? custom_breadcrumbs_paths/520028_cb_paths_language_fix.patch
? custom_breadcrumbs_taxonomy/616976_custom_breadcrumbs_taxonomy.patch
Index: custom_breadcrumbs.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/custom_breadcrumbs/custom_breadcrumbs.module,v
retrieving revision 1.6.2.5.2.30
diff -u -r1.6.2.5.2.30 custom_breadcrumbs.module
--- custom_breadcrumbs.module	29 Nov 2009 03:54:11 -0000	1.6.2.5.2.30
+++ custom_breadcrumbs.module	18 Dec 2009 15:54:59 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: custom_breadcrumbs.module,v 1.6.2.5.2.30 2009/11/29 03:54:11 mgn Exp $
+// $Id$
 
 /**
  * @file
@@ -113,26 +113,29 @@
 }
 
 /**
- * Implementation of hook_init().
+ * Implementation of hook_preprocess().
  */
-function custom_breadcrumbs_init() {
-  if (!custom_breadcrumbs_exclude_path()) {
-    if (variable_get('custom_breadcrumbs_set_global_home_breadcrumb', FALSE)) {
-      // Use default menu structure to set the breadcrumb.
-      $trail = drupal_get_breadcrumb();
-      if (!empty($trail)) {
-        array_shift($trail);
-        $cb_home = custom_breadcrumbs_home_crumb();
-        if (!empty($cb_home)) {
-          array_unshift($trail, array_pop($cb_home));
+function custom_breadcrumbs_preprocess(&$variables, $hook) {
+  static $tried = array();
+  // Only respond to the first call for this hook.
+  if (!isset($tried[$hook])) {
+    $tried[$hook] = TRUE;
+    if (!custom_breadcrumbs_exclude_path()) {
+      if (variable_get('custom_breadcrumbs_set_global_home_breadcrumb', FALSE)) {
+        $trail = drupal_get_breadcrumb();
+        if (!empty($trail)) {
+          array_shift($trail);
+          $cb_home = custom_breadcrumbs_home_crumb();
+          if (!empty($cb_home)) {
+            array_unshift($trail, array_pop($cb_home));
+          }
+          drupal_set_breadcrumb($trail);
         }
-        drupal_set_breadcrumb($trail);
       }
-    }
-
-    if (variable_get('custom_breadcrumbs_set_menu_breadcrumb', FALSE)) {
-      // Use default menu structure to set the breadcrumb.
-      custom_breadcrumbs_set_menu_breadcrumb();
+      if (variable_get('custom_breadcrumbs_set_menu_breadcrumb', FALSE)) {
+        // Use default menu structure to set the breadcrumb.
+        custom_breadcrumbs_set_menu_breadcrumb();
+      }
     }
   }
 }
Index: custom_breadcrumbs_paths/custom_breadcrumbs_paths.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/custom_breadcrumbs/custom_breadcrumbs_paths/Attic/custom_breadcrumbs_paths.module,v
retrieving revision 1.1.2.20
diff -u -r1.1.2.20 custom_breadcrumbs_paths.module
--- custom_breadcrumbs_paths/custom_breadcrumbs_paths.module	29 Nov 2009 03:54:11 -0000	1.1.2.20
+++ custom_breadcrumbs_paths/custom_breadcrumbs_paths.module	18 Dec 2009 15:54:59 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: custom_breadcrumbs_paths.module,v 1.1.2.20 2009/11/29 03:54:11 mgn Exp $
+// $Id$
 
 /**
  * @file
@@ -67,9 +67,9 @@
 }
 
 /**
- * Implementation of hook_init().
+ * Implementation of hook_preprocess().
  */
-function custom_breadcrumbs_paths_init() {
+function custom_breadcrumbs_paths_preprocess(&$variables, $hook) {
   // Check for a match to cover module callback pages.
   // Can't do token replacement without context.
   _custom_breadcrumbs_paths_set_breadcrumb();
