Project

General

Profile

Feature #18063 » moduleMenu.patch

Administrator Admin, 2008-01-28 10:26

View differences:

typo3conf/ext/gt3uipatching/class.ux_modulemenu.php 2008-01-28 10:12:03.000000000 +0100
*/
public function getRawModuleData() {
$modules = array();
global $TYPO3_CONF_VARS;
// Remove the 'doc' module?
$loadedModules = $this->loadedModules;
// Hook: Allow to process modules array before returning it for rendering
$hookObjectsArr = array();
if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/classes/class.modulemenu.php']['preProcessModulesArrayBeforeRendering'])) {
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/classes/class.modulemenu.php']['preProcessModulesArrayBeforeRendering'] as $classRef) {
$hookObjectsArr[] = t3lib_div::getUserObj($classRef);
}
}
reset($hookObjectsArr);
while (list(,$hookObj) = each($hookObjectsArr)) {
if (method_exists($hookObj,'preProcessModulesArrayBeforeRendering')) {
$loadedModules = $hookObj->preProcessModulesArrayBeforeRendering($loadedModules);
}
}
// Remove the 'doc' module?
if($GLOBALS['BE_USER']->getTSConfigVal('options.disableDocModuleInAB')) {
unset($this->loadedModules['doc']);
unset($loadedModules['doc']);
}
foreach($this->loadedModules as $moduleName => $moduleData) {
foreach($loadedModules as $moduleName => $moduleData) {
$moduleNavigationFramePrefix = $this->getNavigationFramePrefix($moduleData);
if($moduleNavigationFramePrefix) {
(1-1/3)