I need help for a feature of the module Conditional Fields.
I need to wrap fieldgroups inside a custom div. So far, I have accomplished this adding a #prefix and a #suffix value to the fieldgroup in hook_form_alter. But I want to move the manipulation to a theme function. The problem is, that a theme function added during form_alter affects only the output inside the fieldset, not outside. Any suggestions?