Feature #18902
closed
Hook for debug_typo3PrintError"
Added by Tom Ruether over 16 years ago.
Updated over 14 years ago.
Description
It is useful for many people to change the default TYPO3 Error Messages therefore we need a Hook in the function debug_typo3PrintError.
Patchfile is attached for actual svn source 4-2.
(issue imported from #M8601)
Files
Attached a slightly modified patch.
As I never implemented a new hook before: Is an interface a must have for new hooks?
No, an interface is not a must have! It depends on the scenario if interfaces make sense or not - if you feel that the new hook might be changed soon or seems to be incomplete, better don't use hooks...
Using an interface here, that would be changed in one of the next releases will result in an error message on the error message hook - isn't that funny? ;-)
hey,
no, no interface required. Looks good so far, only the $fakeThis parameter is unclear to me...
Also, the $js parameter should be modifyable. 'js' => &$js
Christian, just go ahead, and send it to the core list.
Uploaded a new version that moves the hook to the bottom, to enable a hook to actually modify the default message just before outputting.
- Committed to trunk (rev. 5638).
Also available in: Atom
PDF