Index: typo3/template.php =================================================================== --- typo3/template.php (revision 5341) +++ typo3/template.php (working copy) @@ -1903,6 +1903,18 @@ // replace the marker with the template and remove all line breaks (for IE compat) $markers['BUTTONLIST_' . strtoupper($key)] = str_replace("\n", '', $buttonTemplate); } + + // Hook for manipulating docheaderButtons + if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['docHeaderButtonsHook'])) { + $_params = array( + 'markers' => &$markers, + 'pObj' => &$this + ); + foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['docHeaderButtonsHook'] as $_funcRef) { + t3lib_div::callUserFunction($_funcRef, $_params, $this); + } + } + return $markers; }