If you have no Body field on a node type (via blanking out the Body field title in the core Drupal node form settings), then nodeformsettings module should not act on any of its Body field settings. The issue I ran into was with using nodeformsettings with Better Formats module. The nodeformsettings module will add settings to $form['body_field'] even if prior to that point in the nodeformsettings_form_alter() function the value of $form['body_field'] is NULL as is the case when no Body field is defined. Better Formats module then does its own thing on it's own form_alter hook that sees values in $form['body_field'] and does further work on the formats fieldset of the Body field. Except in this case, the Body field is actually not defined so Better Formats should rightly see a NULL for $form['body_field']. Patch is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 919776_8.patch | 965 bytes | giorgosk |
| #8 | 919776#8.patch | 965 bytes | giorgosk |
| #3 | nodeformsettings-n919776-3.patch | 2.48 KB | damienmckenna |
| nodeformsettings.module.patch | 1.13 KB | jaydub |
Comments
Comment #1
lelizondo commentedI'll check this out. Thanks
Comment #2
skylord commentedHave the same issue! Patch works OK - thank you a lot!
Comment #3
damienmckennaI suggest:
Try this.
Comment #4
damienmckennaNeeds a review.
Comment #5
jaydub commentedIt's been awhile but if I recall correctly the formatting issues are actually a problem with the module code in general. My patch was only to address the bug, leaving another patch to bring the whole of the module up to coding standards. Would like to hear from the module maintainer on that one....
Comment #6
skizzo commentedsubscribing
Comment #7
lelizondo commentedCan you please tell me exactly what is it that is breaking with patch in #3?
Comment #8
giorgoskI was hoping for patch to help with "INPUT FORMAT" for body appearing even when BODY is not present
(as was described in the original post)
tried patch from #3 which is exactly like #1 but with uneccessary ---
after applying I recreated the patch with netbeans and it gave me the sorter version which I am attaching
Comment #9
lelizondo commented@GiorgosK I can't open the file. It redirects me to the D.o frontpage, can you please resubmit maybe without the # sign in the filename
Comment #10
giorgoskyes you are right
But note I don't think it works as expected (it did not work for me)
and its basically the same patch as previous 2 patches
Comment #11
lelizondo commentedFixed. Thanks.
Comment #12
lelizondo commentedFixed in 6.x-2.x