1
votes

I have a requirement where the admin will upload an excel file to the site. Once the file is uploaded the data has to be imported to a table. And data from the table will be synchronized to nodes if they are present else new node is created. My question is i can do the synchronization using hook_cron but i have to import the data of excel file to a specific table on creation of node. How can i fire a custom action on a specific node type of node creation in drupal 6?

1

1 Answers

1
votes

You can use hook_nodeapi with the $op of insert.

You will get a reference of the node, where you can test the node type and do what you need to do.