forked from mautic/mautic-typo3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
30 lines (26 loc) · 1.02 KB
/
ext_tables.php
File metadata and controls
30 lines (26 loc) · 1.02 KB
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
29
30
<?php
defined('TYPO3_MODE') || die;
call_user_func(function () {
// Assign the hooks for pushing newly created and edited forms to Mautic
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['beforeFormDuplicate'][1489959059] =
\Bitmotion\Mautic\Hooks\MauticFormHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['beforeFormDelete'][1489959059] =
\Bitmotion\Mautic\Hooks\MauticFormHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['beforeFormSave'][1489959059] =
\Bitmotion\Mautic\Hooks\MauticFormHook::class;
// Backend Module
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Bitmotion.Mautic',
'tools',
'api',
'bottom',
[
'Backend' => 'show, save'
],
[
'access' => 'admin',
'icon' => 'EXT:mautic/Resources/Public/Icons/mautic-with-background.png',
'labels' => 'LLL:EXT:mautic/Resources/Private/Language/locallang_mod.xlf',
]
);
});