[ticket/13108] Add core event to the parse_attachments() function

Add core event to the parse_attachments() function in functions_content.php
to allow modifying/adding attachment template data.

<a href="https://tracker.phpbb.com/browse/PHPBB3-13108">PHPBB3-13108</a>.
@nickvergessen Updated.