[Typo3-dev] extension callbacks
David Bruehlmeier
nospam at nospam.com
Thu Apr 21 22:41:15 CEST 2005
Hi Josef,
Should be quite simple. Use a hook!
http://typo3.org/development/articles/how-to-use-existing-hooks/
> for every insert/update/delete in want a function to
> be called with the record id as param.
I had the same problem and used a hook in TCEmain. Just include a line
something like this in your ext_localconf.php file:
// Activate Hooks in TCE-Main (processDatamapClass)
$GLOBALS
['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processD
atamapClass'][] =
'EXT:myext/class.tx_partner_tcemainprocdm.php:myext_tcemainprocdm';
Have a look at TCEmain on where this hook is located. You might also want to
use the new hook in TYPO3 3.8.0 (afterDatabaseOperations).
Hope this helps!
Greetings,
Dave.
More information about the TYPO3-dev
mailing list