Project

General

Profile

Feature #16331 ยป alt_doc_patch.txt

Administrator Admin, 2006-07-07 21:44

 
--- D:\Eigene Dateien\Temp\alt_doc_1398_orig.php Fri Jul 07 21:38:26 2006
+++ D:\Eigene Dateien\Temp\alt_doc_1398_hook.php Fri Jul 07 21:37:21 2006
@@ -259,6 +259,14 @@
$this->disableRTE = t3lib_div::_GP('_disableRTE');
$this->returnNewPageId = t3lib_div::_GP('returnNewPageId');
$this->vC = t3lib_div::_GP('vC');
+
+ // Prepare user defined objects (if any) for hooks which extend this function:
+ $hookObjectsArr = array();
+ if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/alt_doc.php']['processData'])) {
+ foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/alt_doc.php']['processData'] as $classRef) {
+ $hookObjectsArr[] = &t3lib_div::getUserObj($classRef);
+ }
+ }
// See tce_db.php for relevate options here:
// Only options related to $this->data submission are included here.
@@ -275,6 +283,13 @@
if ($BE_USER->uc['neverHideAtCopy']) { $tce->neverHideAtCopy = 1; }
$tce->debug=0;
$tce->disableRTE = $this->disableRTE;
+
+ // Hook: processData_beforeLoadingData
+ foreach($hookObjectsArr as $hookObj) {
+ if (method_exists($hookObj, 'processData_beforeLoadingData')) {
+ $hookObj->processData_beforeLoadingData($this);
+ }
+ }
// Loading TCEmain with data:
$tce->start($this->data,array());
    (1-1/1)