Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
6.x-2.5
Component:
fieldgroup.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Aug 2009 at 20:32 UTC
Updated:
27 Aug 2009 at 07:40 UTC
Comments
Comment #1
a_c_m commentedsee #480978: Fieldgroup support for the discussion about this in the features queue.
Comment #2
markus_petrux commentedThe Content Copy module (part of CCK package) is able to export/import fieldgroups. You may want to look at that to see how it works.
Comment #3
markus_petrux commentedTo export all fieldgroups in the system, you can use fieldgroup_groups().
To export all fieldgroups in one particular content type, you can use:
To export one single fieldgroup in one particular content type, you can use:
To import them, see content_copy_import_form_submit() in content_copy.module.
Note that the scope of group names is the content type. That is, it is possible to have more than one fieldgroup with the same name on different content types. This is not the case with fields. The scope for Field names is global. You can share them between content types, however, in which case the fields may have global settings and per-instance settings.