* Added hook in GIFBUILDER to preprocess configuration
authorChristian Jul Jensen <christian.jensen@typo3.org>
Thu, 7 Apr 2005 12:57:44 +0000 (12:57 +0000)
committerChristian Jul Jensen <christian.jensen@typo3.org>
Thu, 7 Apr 2005 12:57:44 +0000 (12:57 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@609 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/cms/tslib/class.tslib_gifbuilder.php

index c44b998..0f75191 100755 (executable)
@@ -132,6 +132,21 @@ class tslib_gifBuilder extends t3lib_stdGraphic {
                        $this->setup = $conf;
                        $this->data = $data;
 
+                       /* Hook preprocess gifbuilder conf 
+                        * Added by Julle for 3.8.0
+                        *
+                        * Let's you pre-process the gifbuilder configuration. for
+                        * example you can split a string up into lines and render each
+                        * line as TEXT obj, see extension julle_gifbconf
+                        */
+
+                       if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_gifbuilder.php']['gifbuilder-ConfPreProcess']))    {
+                               foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_gifbuilder.php']['gifbuilder-ConfPreProcess'] as $_funcRef)    {
+                                       $_params = $this->setup;
+                                       $this->setup = t3lib_div::callUserFunction($_funcRef,$_params,$this);
+                               }
+                       }
+
                                // Initializing global Char Range Map
                        $this->charRangeMap = array();
                        if (is_array($GLOBALS['TSFE']->tmpl->setup['_GIFBUILDER.']['charRangeMap.']))   {