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.
Hi!
I upgraded the fieldgroup module from version 1.1 to 1.3. In our code vi have implemented hook_preprocess_node($vars) where we check the $vars['contents'] for the fieldgroups we have e.g $vars['contents']['group_slideshow'] After upgrading the module the fieldgroup in the content array is not existing anymore. We have also made upgrade to drupal core but i am guessing this may be a fieldgroup issue. Does anyone now if this has been changed or what could cause this? I would really appreciate some help with this since i am not that familiar with the internals of fieldgroup.
/ Markus
Comments
Comment #1
jgraham CreditAttribution: jgraham commentedConfirming the same issue on a fieldgroup used on a user profile.
Similar situation; upgraded core, and several modules including field_group.
Problem exists on a custom theme as well as bartik.
Continuing to dig for a solution.
Comment #2
nils.destoop CreditAttribution: nils.destoop commentedThe major difference between version 1.1 and 1.3 is that the processing of fieldgroups is done in the preprocess layer. Fieldgroup comes as very last preprocessor. To make your code work, just change hook_preprocess_node to hook_process_node
Comment #3
nils.destoop CreditAttribution: nils.destoop commented