forked from Gernott/mask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
28 lines (24 loc) · 1.04 KB
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
defined('TYPO3') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'tools',
'mask',
'after:extensionmanager',
null,
[
'routeTarget' => \MASK\Mask\Controller\MaskController::class . '::mainAction',
'access' => 'admin',
'name' => 'tools_mask',
'icon' => 'EXT:mask/Resources/Public/Icons/module-mask_wizard.svg',
'labels' => 'LLL:EXT:mask/Resources/Private/Language/locallang_mask.xlf',
]
);
// Include css for styling of backend preview of mask content elements
$GLOBALS['TBE_STYLES']['skins']['mask']['stylesheetDirectories']['mask'] = 'EXT:mask/Resources/Public/Styles/Backend/';
(static function () {
// Allow all inline tables on standard pages
$tables = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\MASK\Mask\Loader\LoaderRegistry::class)->loadActiveDefinition();
foreach ($tables->getCustomTables() as $tableDefinition) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages($tableDefinition->table);
}
})();