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 use fieldgroup for generating tabs when a node is displayed.
I need to add external field (from another content type) in the tabs generated.
So I created a module and add :
function addingroup_field_group_build_pre_render_alter(& $element) {
drupal_set_message($element['#groups']['group_generalites']->children['0'],'error');
}
a message appears on the node display with the name of one present field.
I need to know how can I add in the $element['#groups']['group_generalites'] a new children!
Best Regards,
Comments
Comment #1
rafamd CreditAttribution: rafamd commentedSee http://drupal.org/node/1213930#comment-4803018