[TASK] EXT:sys_note: Button order
[Packages/TYPO3.CMS.git] / typo3 / sysext / sys_note / ext_tables.php
old mode 100755 (executable)
new mode 100644 (file)
index a5e7ab3..7fdd4e2
@@ -1,22 +1,5 @@
 <?php
-if (!defined('TYPO3_MODE')) {
-       die('Access denied.');
-}
-$TCA['sys_note'] = array(
-       'ctrl' => array(
-               'label' => 'subject',
-               'default_sortby' => 'ORDER BY crdate',
-               'tstamp' => 'tstamp',
-               'crdate' => 'crdate',
-               'cruser_id' => 'cruser',
-               'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy',
-               'delete' => 'deleted',
-               'title' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note',
-               'iconfile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath($_EXTKEY) . 'ext_icon.gif',
-               'sortby' => 'sorting',
-               'dynamicConfigFile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'Configuration/Tca/SysNote.php'
-       )
-);
-\TYPO3\CMS\Core\Extension\ExtensionManager::allowTableOnStandardPages('sys_note');
-\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('sys_note', 'EXT:sys_note/Resources/Private/Language/locallang_csh_sysnote.xlf');
-?>
\ No newline at end of file
+defined('TYPO3_MODE') or die();
+
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_note');
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_note', 'EXT:sys_note/Resources/Private/Language/locallang_csh_sysnote.xlf');