I have a site that uses the webforms module to gather user information. On the front page there is a list of previous submissions. Each of which has a link to view the submission (generated by Views module)
Link is like thingie.com/node/115/submission/1763
However, some users are saving the form as draft and coming back at a later date. When they get to the view page they aren't noticing they can click on the edit tab and are filling in a second submission. So we're getting 'weird' duplicates and they're wasting time.
As the submission view node is loading I'd like to check if it is a webform; which is in draft; and they are the submitting user. If so I'd like to redirect them to
I think know how to do the redirect and the test but I'm being slow and am not sure what hook to catch.
I'm about to investigate the node load hook but wondered if there was a better way.