Index: cck_blocks.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck_blocks/cck_blocks.module,v
retrieving revision 1.1
diff -u -r1.1 cck_blocks.module
--- cck_blocks.module	16 Nov 2007 11:34:24 -0000	1.1
+++ cck_blocks.module	31 Dec 2007 11:45:16 -0000
@@ -46,4 +46,30 @@
 	}
 }
 
-?>
\ No newline at end of file
+/**
+ * Implementation of hook_nodeapi().
+ *
+ * This implementation removes fields that are displayed in a block from the
+ * $node->content array.
+ * 
+ * @param stdClass $node The node on which to perfom the operation
+ * @param string $op The operation to perform
+ * @param boolean $teaser Unused 
+ * @param boolean $page Unused
+ */
+function cck_blocks_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
+  switch ($op) {
+    case 'view':
+      global $theme_key;
+      init_theme();
+      foreach (array_keys(system_region_list($theme_key)) as $region) {
+        foreach (array_keys(block_list($region)) as $block) { 
+          if (strncmp('cck_blocks_', $block, 11) === 0) {
+            $delta = substr($block, 11);
+            unset($node->content[$delta]);
+          }
+        }
+      }
+      break;
+  }
+}

