Added feature #7607: Add post processing hooks for Frontend Editing
authorJeff Segars <jsegars@alumni.rice.edu>
Wed, 27 Feb 2008 17:57:17 +0000 (17:57 +0000)
committerJeff Segars <jsegars@alumni.rice.edu>
Wed, 27 Feb 2008 17:57:17 +0000 (17:57 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3307 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tsfebeuserauth.php

index 6f3f26b..93e5197 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-02-27  Jeff Segars  <jeff@webempoweredchurch.org>
+
+       * Added feature #7607: Add post processing hooks for Frontend Editing
+
 2008-02-26  Michael Stucki  <michael@typo3.org>
 
        * Rename t3lib_install::getFieldDefinitions_sqlContent() to t3lib_install::getFieldDefinitions_fileContent() and provide a wrapper for backwards compatibility
index f765a2a..996605a 100755 (executable)
@@ -832,6 +832,14 @@ $query.'
                if ($this->extGetFeAdminValue('cache','noCache'))       {
                        $GLOBALS['TSFE']->set_no_cache();
                }
+               
+                       // Hook for post processing the frontend admin configuration.
+               if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['extSaveFeAdminConfig-postProc'])) {
+                       $_params = array('input' => &$input, 'pObj' => &$this);
+                       foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['extSaveFeAdminConfig-postProc'] as $_funcRef) {
+                               t3lib_div::callUserFunction($_funcRef,$_params,$this);
+                       }
+               }
        }
 
        /**
@@ -874,6 +882,14 @@ $query.'
                        if ($this->extIsAdmMenuOpen($pre)) {    // See if the menu is expanded!
                                return $retVal;
                        }
+                       
+                               // Hook for post processing the frontend editing action.
+                       if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['extEditAction-postProc'])) {
+                               $_params = array('cmd' => &$cmd, 'tce' => &$tce, 'pObj' => &$this);
+                               foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['extEditAction-postProc'] as $_funcRef) {
+                                       t3lib_div::callUserFunction($_funcRef,$_params,$this);
+                               }
+                       }
                }
        }