forked from DrWh0286/t3events
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
16 lines (12 loc) · 826 Bytes
/
ext_tables.php
File metadata and controls
16 lines (12 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(\DWenzel\T3events\Utility\SettingsInterface::EXTENSION_KEY) . 'Classes/Hooks/ItemsProcFunc.php';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(\DWenzel\T3events\Utility\SettingsInterface::EXTENSION_KEY, 'Configuration/TypoScript', 'Events');
\DWenzel\T3events\Configuration\ExtensionConfiguration::configureTables();
$emSettings = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][\DWenzel\T3events\Utility\SettingsInterface::EXTENSION_KEY], ['allowed_classes' => false]);
// enable event module
if (TYPO3_MODE === 'BE' && (bool)$emSettings['showEventModule']) {
\DWenzel\T3events\Configuration\ExtensionConfiguration::registerAndConfigureModules();
}