Hi,
I'm wondering why there is no fieldgroup data in a $node when using hook_nodeapi and $op = view, respectively how to get information about the groups.
A Standard Group has no additional information which could be of any use in this state, but when defining custom groups which hold additional info, this pieces are missing.
thanks.
Comments
Comment #1
markus_petrux commentedFieldgroup module does not alter the $node object. Rather it affects the node form, and the node view output. Fieldgroup module implements hook_nodeapi(), but only for the 'view' operation.
If you want to get information about fieldgroups, you need to use fieldgroup_groups(). For example:
Comment #2
maulwuff commentedthanks for your fast reply.
I implemented hook_fieldgroup_view, to do my modifications.
What I try to do is, take all fields from the fieldgroup, pass them to the drupal form builder, and put the result back into the group.
Sounds weird, but I think it simplifies form handling on cck_inputs. Works good so far.