Index: mod1/index.php =================================================================== --- mod1/index.php (revision 28823) +++ mod1/index.php (working copy) @@ -2063,11 +2063,24 @@ $possibleCommands = array ('createNewRecord', 'unlinkRecord', 'deleteRecord','pasteRecord', 'makeLocalRecord', 'localizeElement', 'createNewPageTranslation', 'editPageLanguageOverlay'); + $hooks = $this->hooks_prepareObjectsArray('handleIncomingCommands'); + foreach ($possibleCommands as $command) { if (($commandParameters = t3lib_div::_GP($command)) != '') { $redirectLocation = 'index.php?'.$this->link_getParameters(); + $skipCurrentCommand = false; + foreach ($hooks as $hookObj) { + if (method_exists ($hookObj, 'handleIncomingCommands_preProcess')) { + $skipCurrentCommand = $skipCurrentCommand || $hookObj->handleIncomingCommands_preProcess ($command, $redirectLocation, $this); + } + } + + if ($skipCurrentCommand) { + continue; + } + switch ($command) { case 'createNewRecord': @@ -2157,6 +2170,13 @@ } break; } + + foreach ($hooks as $hookObj) { + if (method_exists ($hookObj, 'handleIncomingCommands_postProcess')) { + $hookObj->handleIncomingCommands_postProcess ($command, $redirectLocation, $this); + } + } + } }