forked from lsascha/registeraddress
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
50 lines (39 loc) · 983 Bytes
/
ext_localconf.php
File metadata and controls
50 lines (39 loc) · 983 Bytes
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
// Register Hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \AFM\Registeraddress\Hook\DataHandlerHook::class;
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'AFM.' . $_EXTKEY,
'Registerform',
array(
'Address' => 'new, create, approve, edit, update, delete, information',
),
// non-cacheable actions
array(
'Address' => 'new, create, approve, edit, update, delete, information',
)
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'AFM.' . $_EXTKEY,
'RegisterformRedirect',
array(
'Address' => 'new',
),
// non-cacheable actions
array(
'Address' => 'new',
)
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'AFM.' . $_EXTKEY,
'RegisterformUnsubscribe',
array(
'Address' => 'unsubscribeForm',
),
// non-cacheable actions
array(
'Address' => 'unsubscribeForm',
)
);