Closed (duplicate)
Project:
Field Group
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2012 at 18:01 UTC
Updated:
18 Sep 2012 at 01:29 UTC
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 commentedSee http://drupal.org/node/1213930#comment-4803018