I just noticed that plugins/fieldtool/node_cck.inc handles getter/setter callback (relaying to the cck extraction/itemization callbacks for each single field item) but doesn't do import/export callbacks. Those should do the same thing as the above, just differently named (maybe "cck item export callback" and "cck item import callback"?) in order to support import/export for the whole field.

Bonus points for implementing cck import/export callbacks in the supported CCK field types too.

Comments

Matthew Davidson’s picture

Assigned: Unassigned » Matthew Davidson
Status: Active » Needs work

Thanks to our new generic callbacks (#644444: Generic callback functions), CCK field types now have import/export callbacks. These currently only call fieldtool_set() and fieldtool_get(), which isn't entirely satisfactory (#714422: Generic import/export callbacks need to call itemization/extraction callbacks), but it's a start. I might be inclined to call this good enough for beta3.