Import/Export of CCK (was Re: [development] So, you like CCK?)
dopry at thing.net
Mon Jun 12 20:00:42 UTC 2006
On Mon, 2006-06-12 at 09:32 -0500, Mark Fredrickson wrote:
> > Much like views. It's a good idea. Actually, considering our recent
> > discussions about install profiles, exporting this in a format that
> > would be compatible with install profiles/installer would be great.
> I've spent some time on that:
> The difficulty is faking a form submission. All the saving/updating
> code is right in the _submit functions, so it is hard for modules to
> use CCK programmatically.
> I've been debating factoring this out, but it is a large task. I
> haven't seen any love on my patch anyways, so I'm wondering if the
> effort is worth it, or if I should just wait for Jaza's generalized
> import/export API or FAPI 2.0 (which should make faking form
> submissions easier).
I'd say go a head and factor it even if you just create a
cck_nodeapi_save() and pass through all the variables.... You can also
call the hooks directly with the right parameters, but that just bugs
> In penitence for my supporting the thread hijaking, I promise to
> review the original patch.
More information about the development