$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

Stalski’s picture

Problem 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.

Stalski’s picture

Status: Active » Postponed (maintainer needs more info)

Seems to be working just fine here.
Can you typ out the steps to reproduce?

Stalski’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Feel 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.