Changing a comment describing a tcemain hook.
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Thu, 8 Feb 2007 09:21:22 +0000 (09:21 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Thu, 8 Feb 2007 09:21:22 +0000 (09:21 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2018 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_tcemain.php

index 404c5e6..94c73c7 100755 (executable)
@@ -804,7 +804,12 @@ class t3lib_TCEmain        {
                                                                }
                                                        }
 
-                                                               // Hook: processDatamap_afterDatabaseOperations
+                                                               /*
+                                                                * Hook: processDatamap_afterDatabaseOperations
+                                                                *
+                                                                * Note: When using the hook after INSERT operations, you will only get the temporary NEW... id passed to your hook as $id,
+                                                                *               but you can easily translate it to the real uid of the inserted record using the $this->substNEWwithIDs array.
+                                                                */
                                                        foreach($hookObjectsArr as $hookObj)    {
                                                                if (method_exists($hookObj, 'processDatamap_afterDatabaseOperations')) {
                                                                        $hookObj->processDatamap_afterDatabaseOperations($status, $table, $id, $fieldArray, $this);