Thanks Primehalo, small error on my part - I put the block of code before the )); instead of after!
Ok so there is no error messages now from what I can see! Now does the delete post function work the same as the previous version (compacting it with the reason for deletion) as I have just deleted a post to test try it out, and it just deleted the post completely on me :S
This is using the normal X delete mode at the top right corner of a post.
Thanks again for your help, its really appreciated
Edited to add: I should also add that it didn't ask me to enter a reason for deletion after going to the delete confirmation page.