Hook programming

From TYPO3Wiki

Jump to: navigation, search

TYPO3 Hook programming

This is a draft version. You're welcome to edit it.
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 :

  1. Either the hook already exists in the core of typo3 and you can insert a callback to your function into it.
  2. 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.

Hook references

Personal tools