Needs work
Project:
Node import
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2007 at 22:46 UTC
Updated:
7 Mar 2008 at 23:43 UTC
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?
| Comment | File | Size | Author |
|---|---|---|---|
| og.inc_.txt | 2.43 KB | nedjo |
Comments
Comment #1
Robrecht Jacques commentedAs 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$defaultsarray there. If the fields are mapped, the defaults will be overwritten.Or do I misunderstand something?
Comment #2
nedjoThanks, that's probably just what I needed, I'll give it a try and report back.
Comment #3
Robrecht Jacques commentedIs this related to http://drupal.org/node/170312? Any idea what patch works best?