Here's an attempt at adding organic group import support. To test, rename to og.inc and put in the 'supported' directory. Defining the fields works. But my attempt to provide intellegent defaults in og_node_import_prepare() doesn't seem to be triggered. Is there a different way to provide defaults?

CommentFileSizeAuthor
og.inc_.txt2.43 KBnedjo

Comments

Robrecht Jacques’s picture

As the defaults you are trying to set do not depend on the node but only on variables, you could implement og_node_import_static() instead. Just return the $defaults array there. If the fields are mapped, the defaults will be overwritten.

Or do I misunderstand something?

nedjo’s picture

Thanks, that's probably just what I needed, I'll give it a try and report back.

Robrecht Jacques’s picture

Version: master » 5.x-1.x-dev

Is this related to http://drupal.org/node/170312? Any idea what patch works best?