How exactly can I put a field in a group when calling field_create_instance() ? Or is there a separate call which I need to do after field_create_instance() ?

Comments

Stalski’s picture

There is no way actually.

The only thing I can think of:
- fetch the fieldgroup from database (field_group_read_groups($params = array()) ) which will be the wrapper
- add the field_name to the children array of the group
- save the group again

swentel’s picture

Status: Active » Fixed

Indeed, you need to fetch the group from the database and save it again.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.