Software engineer, data guy, Open Source enthusiast, New Hampshire resident, husband, father. Fan of guitars, hiking, photography, homebrewing, sarcasm.
Drupal 5: Programmatically create a CCK node that has an imagefield
Recently, I was using a REST implementation to fetch images from another server. Originally, I wrote the code to save the retrieved images as attachments to a single node. I revised the code to create custom separate custom CCK nodes using the imagefield module. Here’s a code snippet that programmatically creates the new nodes: