-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathext_localconf.php
46 lines (39 loc) · 1.23 KB
/
ext_localconf.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/* | This extension is part of the TYPO3 project. The TYPO3 project is
* | free software and is licensed under GNU General Public License.
* |
* | (c) 2011-2015 Armin Ruediger Vieweg <[email protected]>
* | 2015 Dennis Roemmich <[email protected]>
*/
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
$boot = function($extensionKey) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'PwCommentsTeam.' . $extensionKey,
'Pi1',
array(
'Comment' => 'index,new,create,upvote,downvote',
),
array(
'Comment' => 'create,upvote,downvote',
)
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'PwCommentsTeam.' . $extensionKey,
'Pi2',
array(
'Comment' => 'sendAuthorMailWhenCommentHasBeenApproved',
),
array(
'Comment' => 'sendAuthorMailWhenCommentHasBeenApproved',
)
);
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions']['PwComments']['modules']
= $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions']['PwComments']['plugins'];
// After save hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] =
'PwCommentsTeam\PwComments\Hooks\ProcessDatamap';
};
$boot($_EXTKEY);
unset($boot);