Hook programming
From TYPO3Wiki
[edit]
TYPO3 Hook programming
When the content is good enough, please change the {{draft}} tag to {{review}} .
For extension programmers.
Hooks are a concept that allows a user defined function to be called at some specific point during TYPO3 execution.
Usage of a hook :
- Either the hook already exists in the core of typo3 and you can insert a callback to your function into it.
- Or it doesn't exist
- Thus you should identify its position in the code and insert it so the hook can call your code.
- Then, as stated in 1. you register your custom function for callback.
- In order to have a hook become permanent, you'll have to justify its necessity and ask for its inclusion into the Typo3 official source code.
[edit]
Hook references
- In TYPO3 Core Engine, a much too short Hook description
- The extension dmc_hooklist (downloadable in TER) can show you a list of most of the hooks available.
