By jriddiough@gmail.com on
I need a module which is triggered when the user saves a node. The module generates a text file, containing themed (I'm using a custom node view with a tpl.php override) node output and attaches it to the node using filefield.
Custom 'node view' code example: http://mearra.com/blogs/juha-niemi/drupal-7-custom-node-view-modes
http://stackoverflow.com/questions/5129559/attaching-files-to-nodes-prog...
The links here are 2 parts of the puzzle.. I just don't know exactly how to hook into the node save to put the file in the files folder.
can pay through paypal or odesk https://www.odesk.com/jobs/~~16d7e4107cce2b8d
Comments
You probably want a module
You probably want a module that implement hook_node_presave() to "record" the node as needing processing, you could at the same time create an empty file and attach it to the node (this way it gets saved with the node). Then implement hook_node_insert() and hook_node_update() to theme the node and save to the file.
Thank you
Thanks, that is useful. Hmm