[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>.
Please add forum_id and preview