? edit_section_suppress_cck.patch
Index: edit_section.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/edit_section/edit_section.module,v
retrieving revision 1.1.2.3
diff -u -r1.1.2.3 edit_section.module
--- edit_section.module	17 Sep 2009 20:26:45 -0000	1.1.2.3
+++ edit_section.module	3 Oct 2009 00:29:32 -0000
@@ -14,7 +14,7 @@
       return TRUE;    // the edit links don't always appear (see 'process'), so we can't cache
 
     case 'description':
-      return t('Allows users to edit sections individually.');
+      return t('Allows users to edit sections in the node body individually.');
 
     case 'prepare':
       return $text;
@@ -23,10 +23,15 @@
     
       if(arg(0) == 'node' && is_numeric(arg(1))) {    // are we actually on a node page?
       
-        $node = node_load(arg(1));  // this will already be cached
-        
-        if(node_access('update', $node))    // does the user have update access for the node?
-          _edit_section_add_links($text);
+        $backtrace = debug_backtrace();
+
+        if($backtrace[4]['function'] == 'node_prepare') {   // are we definitely filtering the node body?
+
+          $node = node_load(arg(1));  // this will already be cached
+          
+          if(node_access('update', $node))    // does the user have update access for the node?
+            _edit_section_add_links($text);
+        }
       }
             
       return $text;
