X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/4612259a457f43edaf723e1f4a8ef4ae89d00a34..4f06c86f2353b07e6d6b393d65cb681f86923054:/typo3/sysext/extensionmanager/ext_tables.php diff --git a/typo3/sysext/extensionmanager/ext_tables.php b/typo3/sysext/extensionmanager/ext_tables.php index f205f2996cf..0826ee21ac8 100644 --- a/typo3/sysext/extensionmanager/ext_tables.php +++ b/typo3/sysext/extensionmanager/ext_tables.php @@ -2,27 +2,38 @@ if (!defined('TYPO3_MODE')) { die('Access denied.'); } -$TCA['tx_extensionmanager_domain_model_extension'] = array( - 'ctrl' => array( - 'title' => 'LLL:EXT:extensionmanager/Resources/Private/Language/locallang_db.xml:tx_extensionmanager_domain_model_extension', - 'label' => 'uid', - 'default_sortby' => '', - 'dynamicConfigFile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'Configuration/TCA/Extension.php', - 'hideTable' => TRUE - ) -); + if (TYPO3_MODE === 'BE') { - \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule($_EXTKEY, 'tools', 'extensionmanager', '', array( - 'List' => 'index,ter,showAllVersions', - 'Action' => 'toggleExtensionInstallationState,removeExtension,downloadExtensionZip,downloadExtensionData', - 'Configuration' => 'showConfigurationForm,save', - 'Download' => 'checkDependencies,installFromTer,updateExtension,updateCommentForUpdatableVersions', - 'UpdateFromTer' => 'updateExtensionListFromTer', - 'UploadExtensionFile' => 'form,extract' - ), array( - 'access' => 'user,group', - 'icon' => ('EXT:' . $_EXTKEY) . '/ext_icon.gif', - 'labels' => ('LLL:EXT:' . $_EXTKEY) . '/Resources/Private/Language/locallang_mod.xml' - )); + \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule( + 'TYPO3.CMS.' . $_EXTKEY, + 'tools', + 'extensionmanager', '', array( + 'List' => 'index,ter,showAllVersions,distributions', + 'Action' => 'toggleExtensionInstallationState,removeExtension,downloadExtensionZip,downloadExtensionData', + 'Configuration' => 'showConfigurationForm,save', + 'Download' => 'checkDependencies,installFromTer,installDistribution,updateExtension,updateCommentForUpdatableVersions', + 'UpdateScript' => 'show', + 'UpdateFromTer' => 'updateExtensionListFromTer', + 'UploadExtensionFile' => 'form,extract', + 'Distribution' => 'welcome' + ), + array( + 'access' => 'user,group', + 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/module.png', + 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf', + ) + ); + + // Register extension status report system + $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['Extension Manager'][] = + 'TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus'; + + // Register specific icon for update script button + \TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons( + array( + 'update-script' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/Icons/ExtensionUpdateScript.png' + ), + $_EXTKEY + ); } -?> \ No newline at end of file +?>