[ticket/neufke/12143] Rename function and move it to functions_content

And I fixed the things nickvergessen mentioned

PHPBB3-12143