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.
$element[$view_mode == 'form' ? '#process': '#pre_render'][] = 'field_group_build_pre_render';
This should be used instead of
$element['#pre_render'][] = 'field_group_build_pre_render';
Otherwise the sorting of the groups isn't correct in the form view.
Comments
Comment #1
Stalski CreditAttribution: Stalski commentedProblem is that some other things don't work then :(
I will be looking into this some deeper, perhapse splitting things up. Don't know for sure right now why the behavior is so different.
Comment #2
Stalski CreditAttribution: Stalski commentedSeems to be working just fine here.
Can you typ out the steps to reproduce?
Comment #3
Stalski CreditAttribution: Stalski commentedFeel free to reopen this ticket if this still occurs in drupal head with the dev version.
Also please some information where and how i can reproduce this.