* Fixed bug #9665: t3lib_BEfunc has a lot of hanging SQL record sets
* Fixed bug #9664: EM fails on retrieving files of uppercase extension keys (thanks to Marcus Krause)
* Added feature #7571: FeUsers in table sys_lockedrecords (thanks to Stefan Geith)
+ * Added feature #8523: IRRE - Integrate possibility to define enabledControls in TCA
2008-10-24 Oliver Hader <oliver@typo3.org>
$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;
}