1

I programmatically executed feeds importer to create new nodes. I have to set some fields programmatically after importing. I check the hooks in feeds.api.php, and didn't find a solution. Is there any way that I can get the newly created node ID by the importer? Thanks

1 Answer 1

-1

I found the solution. Use $entity NOT $entity_id in hook_feeds_after_save.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.