I have a situation where I need to create node(s) in hook_node_insert for certain dates.
Details: There is a content type with date field (start and end-date enabled). The requirement is to create the node with same contents for those many dates.
For example, if the date is from Mar5, 2014 to Mar8, 2014. I need to create node with Startdate & Enddate: Mar5 for one node and Startdate & Enddate: Mar6 for the next node and so on till Mar8 is assigned as start & enddate for the last node.
I got stuck with infinite loop. How do I solve this?