--- cck_fieldgroup_tabs.module.orig 2009-08-25 17:53:03.555571800 +0200 +++ cck_fieldgroup_tabs.module 2009-08-27 10:03:34.203125000 +0200 @@ -185,6 +185,13 @@ function cck_fieldgroup_tabs_nodeapi(&$n unset($node->content[$key]); } } + // Move all #content_extra_fields into the residual tab in order to allow tabs render them correctly + // #pre-render with alter_extra_weights in the tab is needed to sort all the elements right + $residual['#content_extra_fields'] = $node->content['#content_extra_fields']; + $residual['#pre_render'][] = 'content_alter_extra_weights'; + unset($node->content['#content_extra_fields']); + unset($node->content['#pre_render']); + $node->content['fieldgroup_tabs']['fieldgroup_tabs_basic'] = $residual; } }