[TASK] Replace PNG module icons with SVG icons
[Packages/TYPO3.CMS.git] / typo3 / sysext / taskcenter / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'BE') {
5 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
6 'tools_txtaskcenterM1',
7 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'task/'
8 );
9 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
10 'user',
11 'task',
12 'top',
13 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'task/',
14 array(
15 'script' => '_DISPATCH',
16 'access' => 'group,user',
17 'name' => 'user_task',
18 'labels' => array(
19 'tabs_images' => array(
20 'tab' => '../Resources/Public/Icons/module-taskcenter.svg',
21 ),
22 'll_ref' => 'LLL:EXT:taskcenter/task/locallang_mod.xlf',
23 ),
24 )
25 );
26
27 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler(
28 'Taskcenter::saveCollapseState',
29 \TYPO3\CMS\Taskcenter\TaskStatus::class . '->saveCollapseState'
30 );
31
32 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler(
33 'Taskcenter::saveSortingState',
34 \TYPO3\CMS\Taskcenter\TaskStatus::class . '->saveSortingState'
35 );
36 }