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 create my fields and fieldgroups programmatically by using field_create_field(), field_create_instance() and hook_field_group_info(). When I now go to "Manage Fields" or "Manage Display" the fields appear in their groups. When I try to change the group for one of the fields, my changes won't get saved. However I can rearrange the order of the fields within the same fieldgroup.
Comments
Comment #1
willmoy CreditAttribution: willmoy commentedConnected issue but, I think, a feature request: I'd like to be able to move fields into core field groups/vertical tabs, so create a field and add it to 'publishing options' on the node form, for example.
Comment #2
Stalski CreditAttribution: Stalski commentedThe first issue, I tried with a custom module, code beneath and it worked. This should be fixed in dev.
I pushed a little more documentation in field_group.api.php file
@willmoy: you can now create a vertical tab (without a group) and it should be within the bottom "core" vertical tabs section. However, you will not be able to move them to the existing ones them self (like inside publishing options)
Comment #3
chevron CreditAttribution: chevron commentedHi Stalski,
it works fine for mode 'form', however if I apply my fieldgroups to a view mode i cannot move the fields.
Comment #4
Stalski CreditAttribution: Stalski commentedComment #5
Stalski CreditAttribution: Stalski commentedIt's equivalent in the default view mode works too for me.
Are you sure the view mode is correct ("_", "-" replacements or other signs perhaps) ?
Comment #6
Stalski CreditAttribution: Stalski commentedI can not reproduce it somehow. You can upgrade to stable version and run updates.
I hope it's fixed for you too. If you can add steps for me to have the problem you have, please do.