Bug #22647 » 0014383.patch
typo3/backend.php (Arbeitskopie) | ||
---|---|---|
if (isset($GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW']) && (int) $GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW'] != (int) $this->menuWidth) {
|
||
$this->menuWidth = (int) $GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW'];
|
||
}
|
||
$this->executeHook('constructPostProcess');
|
||
}
|
||
/**
|
||
... | ... | |
* @return void
|
||
*/
|
||
public function render() {
|
||
$this->executeHook('renderPreProcess');
|
||
// prepare the scaffolding, at this point extension may still add javascript and css
|
||
$logo = t3lib_div::makeInstance('TYPO3Logo');
|
||
... | ... | |
$this->content .= $backendScaffolding;
|
||
$this->content .= $GLOBALS['TBE_TEMPLATE']->endPage();
|
||
$this->executeHook('renderPostProcess');
|
||
echo $this->content;
|
||
}
|
||
... | ... | |
unset($toolbarItem);
|
||
}
|
||
}
|
||
/**
|
||
* Executes defined hooks functions for the given identifier.
|
||
*
|
||
* @param string $identifier Specific hook identifier
|
||
* @return void
|
||
*/
|
||
protected function executeHook($identifier) {
|
||
$options =& $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/backend.php'];
|
||
if(isset($options[$identifier]) && is_array($options[$identifier])) {
|
||
foreach($options[$identifier] as $hookFunction) {
|
||
$hookConfiguration = array();
|
||
t3lib_div::callUserFunction($hookFunction, $hookConfiguration, $this);
|
||
}
|
||
}
|
||
}
|
||
}
|
||