Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Can you please advice on how to use code to initiate a node import?
My module hook_node_export_features_default has the webform node data array but I have no idea how to use it to re-create the original node.
Please help.
Comments
Comment #1
ajlow CreditAttribution: ajlow commentedI don't know if it is best practice, but for what I was doing, I used the function:
node_export_import($codeString)
Comment #2
danielb CreditAttribution: danielb commentedThat's correct, it should interpret the code and process it. Check the documentation in the code above that function.