Attached patch adds a function that allows you to pass the exported CCK code - and it will help you with the CRUD - so you don't have to bother if the content types/ fields already exist or not.
content_copy_import_content() was taken from install profile API module.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | content-copy-set-content-2.patch | 3.63 KB | amitaibu |
| content-copy-set-content-1.patch | 3.7 KB | amitaibu |
Comments
Comment #1
amitaibuBetter naming of variables, and remove a redundant module_load_include().
Comment #2
markus_petrux commentedFor the moment, CCK3 only hosts the stuff related to the multigroup module, and nested fieldgroups when ready. Reference: #494100: State of the multigroup module
So, I prefer to flag this issue for CCK2, and see if it can be reviewed by yched and/or KarenS.
Comment #3
amitaibuNext patch should include CRUD for groups.
Comment #4
amitaibuI was thinking, and this feature can live in a contrib , so I'm won't fixing it - and will create a module soon.
Comment #5
amitaibuhttp://drupal.org/project/cck_sync