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.
in my theme I used to use hide($vars['content']['group_example']);
to hide a field group conditionally, but after update to 1.2, it doesn't work any more
Comments
Comment #1
nils.destoop CreditAttribution: nils.destoop commentedYou should change it to template_process_node.
Fieldgroup needs to come as very last preprocess function, because all preprocess fields need to be set, before fieldgroup can start grouping. Otherwise the preprocess fields won't show up in correct group.
Comment #2
nils.destoop CreditAttribution: nils.destoop commented