Exclude CCK fieldsets from Simplify node form

gilgabar - November 10, 2008 - 00:02
Project:Formfilter
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:gilgabar
Status:needs review
Description

The simplify node form option seemed super useful at first, but I found it too zealous in its simplification of my node forms. Specifically I did not want CCK fieldsets that I created myself to be dumped into Advanced options. This patch adds an option to exclude CCK fieldsets from Advanced options. As best I can tell, all the CCK fieldsets start with "group_" so all this does is exclude any fieldsets with that in the name. It appears to work well for me. The patch is against the 6.x version in this thread: http://drupal.org/node/311333, as that is what I am using, but it appears to apply cleanly to the 5.x-1.0 version as well, though I haven't tested it with Drupal 5.x.

AttachmentSize
formfilter-cck-fieldset.patch1.61 KB

#1

nedjo - November 25, 2008 - 18:03
Status:needs review» needs work

Makes sense and the patch looks good.

Patch should now be on new formfilter_ui module in HEAD. Other minor issues:

* Pass title and description through t() in $form['formfilter_simplify_node_cck']
* else clauses should be on separate line and should have a space before the bracket
* should use module_exists('content') to show the form and do the special handling only if if the content module is present.

I'd welcome a new patch. Thanks!

#2

gilgabar - December 1, 2008 - 03:39
Status:needs work» needs review

Thanks for catching that stuff. Here is a revised patch that should resolve those issues.

AttachmentSize
formfilter-cck-fieldset_0.patch 1.67 KB

#3

gilgabar - March 28, 2009 - 01:39

This is a patch against the current 6.x-1.x-dev version.

AttachmentSize
formfilter_ui-cck-fieldset.patch 1.68 KB
 
 

Drupal is a registered trademark of Dries Buytaert.