By NaSPA1 on
I'm working on a custom module for my site. After the user creates a new node using the module and it has been validated & subitted - I want to present a "thank you" page to the user and take other follow-up actions. Which hook would be best to use for this function?
Thanks!
Radi
Comments
it depends
if you want a "full" page, you should use nodeapi, together with drupal_goto() to lead people to the right place.
If you want only a message, you shoud use drupal_set_message() in nodeapi().
And if this solved you problem, would you be so kind to report back that it helped? This will help others whom are looking for the same solution.
[Ber | Drupal Services webschuur.com]
Getting close...
Hi Ber!
Thanks for the tip about nodeapi, its close to what I'm looking for. I actually want to do more than just present a page (a little background postprocessing). But its not clear which nodeapi call woudl be best. I want this to be called once for each completed post
Thanks!
Radi