Added feature #6734: Integrate post processing for links handled by typoLink
authorOliver Hader <oliver.hader@typo3.org>
Mon, 19 Nov 2007 09:05:31 +0000 (09:05 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Mon, 19 Nov 2007 09:05:31 +0000 (09:05 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2733 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

index 2a67e58..6af985f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-19  Oliver Hader  <oh@inpublica.de>
+
+       * (feature) Added feature #6734: Integrate post processing for links handled by typoLink
+
 2007-11-16  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
        * Feature #6715: Remapping of b and i tags by RTE transformation made configurable
index b71f680..31ddff3 100755 (executable)
@@ -5326,6 +5326,19 @@ class tslib_cObj {
                                $res = $this->callUserFunction($conf['userFunc'],$conf['userFunc.'],$finalTagParts);
                        }
 
+                               // Hook: Call post processing function for link rendering:
+                       if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typoLink_PostProc']) && is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typoLink_PostProc'])) {
+                               $_params = array(
+                                       'conf' => &$conf,
+                                       'linktxt' => &$linktxt,
+                                       'finalTag' => &$res,
+                                       'finalTagParts' => &$finalTagParts,
+                               );
+                               foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typoLink_PostProc'] as $_funcRef) {
+                                       t3lib_div::callUserFunction($_funcRef, $_params, $this);
+                               }
+                       }
+
                                // If flag "returnLastTypoLinkUrl" set, then just return the latest URL made:
                        if ($conf['returnLast'])        {
                                switch($conf['returnLast'])     {