Project

General

Profile

Feature #22139 ยป alt_clickmenu.diff

Administrator Admin, 2010-02-18 15:13

View differences:

2/typo3/alt_clickmenu.php 2010-02-18 15:03:52.000000000 +0100
// Get permissions
$lCP = $BE_USER->calcPerms(t3lib_BEfunc::getRecord('pages',($table=='pages'?$this->rec['uid']:$this->rec['pid'])));
//Hook for disabling Items in Click Menu
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/alt_clickmenu.php']['disableItems'])) {
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/alt_clickmenu.php']['disableItems'] as $classRef) {
$_params = array($uid, &$this->disabledItems, $table);
$hookObj = t3lib_div::callUserFunction($classRef, $_params, $this);
}
}
// View
if (!in_array('view',$this->disabledItems)) {
if ($table=='pages') $menuItems['view']=$this->DB_view($uid);
    (1-1/1)