We met with a challenging requirement where we needed to create a feeds importer on node creation of particular content type. It’s like for ‘n’ number of nodes there must be an ‘n’ number of feeds importer.
For that I created a feeds importer which will be considered as the template. Whenever the node of specific content type is created, the template will be cloned and a new importer will be created.
The following code needs to reside in hook_node_insert() and will be used to clone the feeds importer: