Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:entwickler:hooks [2026/08/26 21:03] – created kainhofer | en:entwickler:hooks [2026/08/26 22:33] (current) – kainhofer | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| - | For the full list of hooks, see the Hooks Catalogue. | + | For the full list of hooks, see the [[.: |
| Note: The underlying plugin system that lets Admidio extend easily with third party plugins is not yet implemented. The hooks functionality described here, however, also works with manually added extensions in the admidio code tree. | Note: The underlying plugin system that lets Admidio extend easily with third party plugins is not yet implemented. The hooks functionality described here, however, also works with manually added extensions in the admidio code tree. | ||
| Line 10: | Line 10: | ||
| Admidio' | Admidio' | ||
| modify core Admidio behavior without patching core files or subclassing core classes: | modify core Admidio behavior without patching core files or subclassing core classes: | ||
| - | * You register a callback function for any of the documented | + | * You register a callback function for any of the documented |
| - | * At several strategic spots in the code, Admidio core dispatches a named hoo, at that point | + | * At several strategic spots in the code, Admidio core dispatches a named hook |
| * Core calls all registered callback functions for the particular named hook. | * Core calls all registered callback functions for the particular named hook. | ||
| Line 146: | Line 146: | ||
| } | } | ||
| // reject an email outside the association' | // reject an email outside the association' | ||
| - | if ($userData-> | + | if ($userData-> |
| throw new Exception(' | throw new Exception(' | ||
| } | } | ||
| Line 202: | Line 202: | ||
| Hooks:: | Hooks:: | ||
| if ($page-> | if ($page-> | ||
| - | $page-> | + | $page-> |
| } | } | ||
| }); | }); | ||