Suppress CCK Fields

Grayside - October 2, 2009 - 15:21
Project:Edit section
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:jbrown
Status:closed
Description

If you have filtered CCK fields they will also gain Edit Sections links, starting with section "0" for each field. These links are processed with regard only for the node body.

As a feature request, it would be ideal to extend Edit Sections to properly process the fields. As a bug report, Edit Sections should ignore anything except the body of a node.

#1

jbrown - October 3, 2009 - 00:21
Category:feature request» bug report
Assigned to:Anonymous» jbrown
Status:active» needs review

The Drupal core hooks are pretty useless for what this module needs.

The attached patch uses debug_backtrace() to determine if the text being filtered is the node body. Makes the module even more hacky, but does work.

AttachmentSize
edit_section_suppress_cck.patch 1.46 KB

#2

jbrown - October 3, 2009 - 00:26
Title:Support or Suppress CCK Fields» Suppress CCK Fields

#3

jbrown - October 3, 2009 - 00:30

fix typo

AttachmentSize
edit_section_suppress_cck.patch 1.46 KB

#4

jbrown - November 2, 2009 - 03:49
Status:needs review» fixed

http://drupal.org/cvs?commit=282722

#5

System Message - November 16, 2009 - 03:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.