--- ../typo3/typo3/sysext/cms/tslib/class.tslib_content.php 2008-05-25 18:12:00.000000000 +0200 +++ class.tslib_content.php 2008-05-25 18:16:44.000000000 +0200 @@ -2643,6 +2643,19 @@ } elseif ($conf['imageLinkWrap']) { $theValue = $this->imageLinkWrap($theValue,$info['origFile'],$conf['imageLinkWrap.']); } + + // Hook: Call post processing function for image tag rendering: + if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['cImage_PostProc']) && is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['cImage_PostProc'])) { + $_params = array( + 'conf' => &$conf, + 'file' => &$file, + 'imgTag' => &$theValue, + ); + foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['cImage_PostProc'] as $_funcRef) { + t3lib_div::callUserFunction($_funcRef, $_params, $this); + } + } + return $this->wrap($theValue,$conf['wrap']); } }