[TASK] Harmonize coding style of if constructs in /typo3/sysext/cms/
[Packages/TYPO3.CMS.git] / typo3 / sysext / opendocs / ext_tables.php
1 <?php
2
3 if (!defined('TYPO3_MODE')) die('Access denied.');
4
5
6 if(TYPO3_MODE == 'BE') {
7
8 $opendocsPath = t3lib_extMgm::extPath('opendocs');
9
10 // register toolbar item
11 $GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'][] = $opendocsPath.'registerToolbarItem.php';
12
13
14 // register AJAX calls
15 $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['tx_opendocs::renderMenu'] = $opendocsPath.'class.tx_opendocs.php:tx_opendocs->renderAjax';
16 $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['tx_opendocs::closeDocument'] = $opendocsPath.'class.tx_opendocs.php:tx_opendocs->closeDocument';
17
18 // register update signal to update the number of open documents
19 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['updateSignalHook']['tx_opendocs::updateNumber'] = $opendocsPath.'class.tx_opendocs.php:tx_opendocs->updateNumberOfOpenDocsHook';
20
21
22 // register menu module if option is wanted
23 $_EXTCONF = unserialize($_EXTCONF);
24 if($_EXTCONF['enableModule']) {
25 t3lib_extMgm::addModule('user', 'doc', 'after:ws', $opendocsPath.'mod/');
26 }
27 }
28
29 ?>