Closed (fixed)
Project:
CCK Fieldgroup Tabs
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2008 at 14:53 UTC
Updated:
28 Apr 2008 at 09:53 UTC
other modules may want to add tabs by adding content to content['fieldgroup_tabs']. However, this module always resets this subarray so the other module's content gets lost.
I've added a patch to fix this issue.
| Comment | File | Size | Author |
|---|---|---|---|
| reset_fix.patch | 667 bytes | LexVogelaar |
Comments
Comment #1
nedjoGood idea.
A couple of details needed:
1. If we're doing this for node display, we should also do it on node forms.
2. Instead of redeclaring, we should test if the array key is already set and, if so, add to it:
Comment #2
nedjoApplied a modified version, thanks.
Comment #3
LexVogelaar commentedThanx for the fast reaction.
About point 2:
Doing the test on content['fieldgroup_tabs'] creates an assumption that 'the other module' added the #type = tabset.
I think your module should manage the root level attributes.
So in my opinion, if you want to test then test for content['fieldgroup_tabs']['#type'].
Hope that helps..
Lex.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.