Index: typo3/file_edit.php =================================================================== --- typo3/file_edit.php (revision 8949) +++ typo3/file_edit.php (working copy) @@ -155,6 +155,20 @@ $this->content = $this->doc->startPage($LANG->sL('LLL:EXT:lang/locallang_core.php:file_edit.php.pagetitle')); + // hook before compiling the output + if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/file_edit.php']['preOutputProcessingHook'])) { + $preOutputProcessingHook =& $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/file_edit.php']['preOutputProcessingHook']; + if (is_array($preOutputProcessingHook)) { + $hookParameters = array( + 'content' => &$this->content, + 'target' => &$this->target, + ); + foreach ($preOutputProcessingHook as $hookFunction) { + t3lib_div::callUserFunction($hookFunction, $hookParameters, $this); + } + } + } + $pageContent = $this->doc->header($LANG->sL('LLL:EXT:lang/locallang_core.php:file_edit.php.pagetitle')); $pageContent .= $this->doc->spacer(2); @@ -192,6 +206,20 @@ $pageContent.= $this->doc->sectionEnd(); $pageContent.=$code; + // hook after compiling the output + if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/file_edit.php']['postOutputProcessingHook'])) { + $postOutputProcessingHook =& $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/file_edit.php']['postOutputProcessingHook']; + if (is_array($postOutputProcessingHook)) { + $hookParameters = array( + 'pageContent' => &$pageContent, + 'target' => &$this->target, + ); + foreach ($postOutputProcessingHook as $hookFunction) { + t3lib_div::callUserFunction($hookFunction, $hookParameters, $this); + } + } + } + // Add the HTML as a section: $markerArray = array( 'CSH' => $docHeaderButtons['csh'],