Skip to main content
edited tags
Link
user1015214
  • 1.8k
  • 1
  • 21
  • 52
Source Link
user1015214
  • 1.8k
  • 1
  • 21
  • 52

how to write a post-save trigger

The node_api hook provides a bunch of triggers which allows you to customize what might happen on, for example, a presave. The node_api presave opcode triggers an action to occur after clicking on the node 'save' button but BEFORE the information in the node form is inserted into the database. I would like to create a trigger which will be a post-save trigger, to trigger my custom code after clicking the save button but AFTER the node info has been saved into the database. Does anyone have any ideas of how I might create such a trigger?

(I have read the documentation about how to create a trigger, I just don't know to code the trigger I am describing above.)