Project

General

Profile

Feature #18858 » 0008523.patch

Administrator Admin, 2008-06-13 18:07

View differences:

t3lib/class.t3lib_tceforms_inline.php (Arbeitskopie)
$permsEdit = ($isPagesTable && ($localCalcPerms&2)) || (!$isPagesTable && ($calcPerms&16));
// Controls: Defines which controls should be shown
$enabledControls = array(
'info' => true,
'new' => true,
'dragdrop' => true,
'sort' => true,
'hide' => true,
'delete' => true,
'localize' => true,
);
$enabledControls = $config['appearance']['enabledControls'];
// Hook: Can disable/enable single controls for specific child records:
foreach ($this->hookObjects as $hookObj) {
$hookObj->renderForeignRecordHeaderControl_preProcess($parentUid, $foreign_table, $rec, $config, $isVirtual, $enabledControls);
......
} elseif (!isset($config['appearance']['levelLinksPosition']) || !in_array($config['appearance']['levelLinksPosition'], array('top', 'bottom', 'both', 'none'))) {
$config['appearance']['levelLinksPosition'] = 'top';
}
// Defines which controls should be shown in header of each record:
$enabledControls = array(
'info' => true,
'new' => true,
'dragdrop' => true,
'sort' => true,
'hide' => true,
'delete' => true,
'localize' => true,
);
if (isset($config['appearance']['enabledControls']) && is_array($config['appearance']['enabledControls'])) {
$config['appearance']['enabledControls'] = array_merge($enabledControls, $config['appearance']['enabledControls']);
} else {
$config['appearance']['enabledControls'] = $enabledControls;
}
return true;
}
(2-2/2)