7a8f94519b2f502af528d657d47e3f8dff2c4e18
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5
6 if (TYPO3_MODE === 'BE') {
7 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
8 'TYPO3.CMS.' . $_EXTKEY,
9 'tools',
10 'extensionmanager', '', array(
11 'List' => 'index,ter,showAllVersions',
12 'Action' => 'toggleExtensionInstallationState,removeExtension,downloadExtensionZip,downloadExtensionData',
13 'Configuration' => 'showConfigurationForm,save',
14 'Download' => 'checkDependencies,installFromTer,updateExtension,updateCommentForUpdatableVersions',
15 'UpdateScript' => 'show',
16 'UpdateFromTer' => 'updateExtensionListFromTer',
17 'UploadExtensionFile' => 'form,extract'
18 ),
19 array(
20 'access' => 'user,group',
21 'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif',
22 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf',
23 )
24 );
25
26 // Register extension status report system
27 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['Extension Manager'][] =
28 'TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus';
29
30 // Register specific icon for update script button
31 \TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(
32 array(
33 'update-script' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/Icons/ExtensionUpdateScript.png'
34 ),
35 $_EXTKEY
36 );
37 }
38 ?>