[FEATURE] Add a hook to pre-process TSFE determineId()
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tslib / class.tslib_fe.php
index fd2b04c..7cfbec8 100644 (file)
@@ -742,6 +742,14 @@ class tslib_fe {
         */
        function determineId() {
 
+                       // Call pre processing function for id determination
+               if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['determineId-PreProcessing'])) {
+                       foreach ($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['determineId-PreProcessing'] as $functionReference) {
+                               $parameters = array('parentObject' => $this);
+                               t3lib_div::callUserFunction($functionReference, $parameters, $this);
+                       }
+               }
+
                        // Getting ARG-v values if some
                $this->setIDfromArgV();