|
TYPO3 API
SVNRelease
|
00001 <?php 00002 00003 if (!defined('TYPO3_MODE')) die('Access denied.'); 00004 00005 00006 if(TYPO3_MODE == 'BE') { 00007 00008 $opendocsPath = t3lib_extMgm::extPath('opendocs'); 00009 00010 // register toolbar item 00011 $GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'][] = $opendocsPath.'registerToolbarItem.php'; 00012 00013 00014 // register AJAX calls 00015 $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['tx_opendocs::renderMenu'] = $opendocsPath.'class.tx_opendocs.php:tx_opendocs->renderAjax'; 00016 $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['tx_opendocs::closeDocument'] = $opendocsPath.'class.tx_opendocs.php:tx_opendocs->closeDocument'; 00017 00018 // register update signal to update the number of open documents 00019 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['updateSignalHook']['tx_opendocs::updateNumber'] = $opendocsPath.'class.tx_opendocs.php:tx_opendocs->updateNumberOfOpenDocsHook'; 00020 00021 00022 // register menu module if option is wanted 00023 $_EXTCONF = unserialize($_EXTCONF); 00024 if($_EXTCONF['enableModule']) { 00025 t3lib_extMgm::addModule('user', 'doc', 'after:ws', $opendocsPath.'mod/'); 00026 } 00027 } 00028 00029 ?>
1.8.0