Identifer: core.submit_post_modify_return_url
Location: functions_posting.php directly before the return statement in submit_post()
Parameters: - $data - array containing post data
- $url - The redirect URL used on the posting success page to return to the post
Explanation: For my topic prefixes extension, I need to be able to add prefixes to new topics, but with the current events it seems impossible to determine the ID of the new topic after it has been posted. The events in posting.php don't let me access it, and even if we added an event in after submit_post(), or if I used something that happens on all pages after that is run, I'd need to do another SQL query to determine the topic ID. If we add the event inside submit_post() the topic ID is available in the $data array. The name of this event is really due to the fact that the only actual action that you could perform by changing any of the event's parameters would be to change the URL. It just has the added benefit of allowing me to access some data I need.