[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.

PHPBB3-13108