[TASK] Move backend module icons to respective location
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 // avoid that this block is loaded in the frontend or within the upgrade-wizards
5 if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
6 /** Registers a Backend Module */
7 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
8 'TYPO3.CMS.' . $_EXTKEY,
9 'web',
10 'workspaces',
11 'before:info',
12 array(
13 // An array holding the controller-action-combinations that are accessible
14 'Review' => 'index,fullIndex,singleIndex',
15 'Preview' => 'index,newPage'
16 ),
17 array(
18 'access' => 'user,group',
19 'icon' => 'EXT:workspaces/Resources/Public/Icons/module-workspaces.gif',
20 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf',
21 'navigationComponentId' => 'typo3-pagetree'
22 )
23 );
24
25 // register ExtDirect
26 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent(
27 'TYPO3.Workspaces.ExtDirect',
28 'TYPO3\\CMS\\Workspaces\\ExtDirect\\ExtDirectServer',
29 'web_WorkspacesWorkspaces',
30 'user,group'
31 );
32 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent(
33 'TYPO3.Workspaces.ExtDirectActions',
34 'TYPO3\\CMS\\Workspaces\\ExtDirect\\ActionHandler',
35 'web_WorkspacesWorkspaces',
36 'user,group'
37 );
38 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent(
39 'TYPO3.Workspaces.ExtDirectMassActions',
40 'TYPO3\\CMS\\Workspaces\\ExtDirect\\MassActionHandler',
41 'web_WorkspacesWorkspaces',
42 'user,group'
43 );
44 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent(
45 'TYPO3.Ajax.ExtDirect.ToolbarMenu',
46 'TYPO3\\CMS\\Workspaces\\ExtDirect\\ToolbarMenu'
47 );
48 }
49
50 // todo move icons to Core sprite or keep them here and remove the todo note ;)
51 $icons = array(
52 'sendtonextstage' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtonextstage.png',
53 'sendtoprevstage' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtoprevstage.png',
54 'generatepreviewlink' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/generate-ws-preview-link.png'
55 );
56 \TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons($icons, $_EXTKEY);
57 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_workspace_stage', 'EXT:workspaces/Resources/Private/Language/locallang_csh_sysws_stage.xlf');