# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: contributions/modules/article/article.module
--- contributions/modules/article/article.module Base (1.23.2.5.2.1.2.13.2.3)
+++ contributions/modules/article/article.module Locally Modified (Based On 1.23.2.5.2.1.2.13.2.3)
@@ -180,6 +180,13 @@
 				    '#description' => t('Use the pathauto module to create links to article categories.')
 );
 
+  $form['article_breadcrumb'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Show breadcrumb when viewing nodes'),
+    '#default_value' => variable_get('article_breadcrumb', FALSE),
+    '#description' => t('When viewing a node with at least one category listed as Article, display the breadcrumb of current article depth.')
+  );
+
   return system_settings_form($form);
 }
 
@@ -432,6 +439,28 @@
   return $term;
 }
 
+/**
+ * Implementation of hook_nodeapi();
+ *
+ * Used to display breadcrumb on nodes categorized as articles
+ */
+function article_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
+  switch ($op) {
+    case 'view':
+      // Only set breadbrumb of the first article category found.
+      if ($node->taxonomy && count($node->taxonomy) > 0) {
+        $terms = article_get_article_terms();
+        foreach ($node->taxonomy as $tid => $taxonomy) {
+          if (in_array($tid, $terms)) {
+            article_build_breadcrumbs($tid);
+            break;
+          }
+        }
+      }
+      break;
+  }
+}
+
 /**  @} End of the module_article group **/
 
 
