mirror of
https://github.com/werkraum-media/events.git
synced 2024-12-23 18:46:09 +01:00
24 lines
590 B
PHP
24 lines
590 B
PHP
<?php
|
|
|
|
defined('TYPO3_MODE') or die();
|
|
|
|
call_user_func(function () {
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
|
'Wrm.Events',
|
|
'Pi1',
|
|
'Events Plugin',
|
|
'EXT:events/Resources/Public/Icons/user_plugin_events.svg'
|
|
);
|
|
|
|
$pluginSignature = 'events_pi1';
|
|
|
|
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
|
|
|
|
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
|
|
$pluginSignature,
|
|
'FILE:EXT:events/Configuration/FlexForms/Pi1.xml'
|
|
);
|
|
|
|
|
|
});
|