Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get error messages, when I go to "Manage Display" of a content-type that uses fieldgroups. I exported my fieldgroups using the ctools bulk exporter and then included the generated code to my module.
Comment | File | Size | Author |
---|---|---|---|
Bildschirmfoto.png | 167.95 KB | chevron |
Comments
Comment #1
Stalski CreditAttribution: Stalski commentedDo you still have that problem in latest dev? My guess is that is is fixed now, but I want to be sure. Long time I saw this bug.
Comment #2
chevron CreditAttribution: chevron commentedI still have that in latest dev release.
Comment #3
Stalski CreditAttribution: Stalski commentedDo you have any other information that can help us reproduce the problem. I have exports in code too but even there no problem.
Comment #4
chevron CreditAttribution: chevron commentedI think I can reproduce this now. This error occurs when one or more fields are assigned to a group but their label and type attributes are set to hidden programmatically.
Comment #5
Stalski CreditAttribution: Stalski commentedok thx, I'll try it out.
Comment #6
Stalski CreditAttribution: Stalski commentedCan you provide your code how you set label and type hidden programmatically? Is this a late form alter or another hook and what's the code? Maybe you could tell me what the reasons are for trying to hide the type or label?
Maybe field group can do something to meet your requirements.
Comment #7
Stalski CreditAttribution: Stalski commentedHmm I tested with code through features and normal export through ctools driven default field group hook and everything works as expected.
I did not test this under rc2 as things have changed a lot for the better. Maybe an upgrade is your solution then, I'll be releasing very soon, like tonight I think :)
Comment #8
chevron CreditAttribution: chevron commentedHi,
I do that within my *.install file. I wrote two helper functions that create the fields and field instances for my content type module. This is the helper function that creates the field intances including the display settings.