Hello,

It would be useful to have the sfid available in the node_api callback. In my case I use this to load foreign information from other SF tables.

Attached is a patch that does this.

Thanks you for this great module.

CommentFileSizeAuthor
sf_node.patch591 bytesAlice Heaton

Comments

EvanDonovan’s picture

Seems like a good idea. Would this cause conflicts potentially with other parts of the code that might be checking for a $node->sfid?

aaronbauman’s picture

is your use case addressed by #1042272: Pre and post import hooks?

Alice Heaton’s picture

Status: Needs review » Closed (duplicate)

Hi,

Yes - my use case is addresses by #1042272: Pre and post import hooks - and it is a cleaner way of doing it I guess.

As it seems #1042272: Pre and post import hooks will get added to the module, I'll mark this one as duplicate. Thank you for pointing it out !

Thanks,
Anselm