[TASK] Move classes to new target location
[Packages/TYPO3.CMS.git] / typo3 / sysext / version / ext_localconf.php
1 <?php
2 /* $Id: ext_localconf.php 7251 2010-04-06 18:57:45Z francois $ */
3 if (!defined('TYPO3_MODE')) {
4 die('Access denied.');
5 }
6 // register the hook to actually do the work within TCEmain
7 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['version'] = t3lib_extMgm::extPath('version', 'class.tx_version_tcemain.php:&tx_version_tcemain');
8 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass']['version'] = t3lib_extMgm::extPath('version', 'class.tx_version_tcemain.php:&tx_version_tcemain');
9 // Register hook for overriding the icon status overlay
10 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_iconworks.php']['overrideIconOverlay']['version'] = t3lib_extMgm::extPath('version', 'class.tx_version_iconworks.php:&tx_version_iconworks');
11 // Register hook to check for the preview mode in the FE
12 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['connectToDB']['version_preview'] = 'EXT:version/Classes/Preview.php:Tx_Version_Preview->checkForPreview';
13 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/index_ts.php']['postBeUser']['version_preview'] = 'EXT:version/Classes/Preview.php:Tx_Version_Preview->initializePreviewUser';
14 if (TYPO3_MODE == 'BE') {
15 // add default notification options to every page
16 t3lib_extMgm::addPageTSconfig('
17 tx_version.workspaces.stageNotificationEmail.subject = LLL:EXT:version/Resources/Private/Language/locallang_emails.xml:subject
18 tx_version.workspaces.stageNotificationEmail.message = LLL:EXT:version/Resources/Private/Language/locallang_emails.xml:message
19 # tx_version.workspaces.stageNotificationEmail.additionalHeaders =
20 ');
21 }
22 ?>