Project

General

Profile

Bug #17845 » 20071124_help_fields.patch

Administrator Admin, 2007-11-24 22:01

View differences:

typo3/alt_doc.php (working copy)
// Values NOT in this array will not be saved in the settings-array for the module.
$this->MOD_MENU = array(
'showPalettes' => '',
'showDescriptions' => '',
'disableRTE' => ''
);
......
$this->tceforms->clipObj->initializeClipboard(); // Initialize - reads the clipboard content from the user session
// Setting external variables:
if ($BE_USER->uc['edit_showFieldHelp']!='text' && $this->MOD_SETTINGS['showDescriptions']) $this->tceforms->edit_showFieldHelp='text';
$this->tceforms->edit_showFieldHelp = $BE_USER->uc['edit_showFieldHelp'];
if ($this->editRegularContentFromId) {
$this->editRegularContentFromId();
......
// Show palettes:
$funcMenus.= '<br /><br />'.t3lib_BEfunc::getFuncCheck('','SET[showPalettes]',$this->MOD_SETTINGS['showPalettes'],'alt_doc.php',t3lib_div::implodeArrayForUrl('',array_merge($this->R_URL_getvars,array('SET'=>''))),'id="checkShowPalettes"').'<label for="checkShowPalettes">'.$LANG->sL('LLL:EXT:lang/locallang_core.php:labels.showPalettes',1).'</label>';
// Show descriptions/help texts:
if ($BE_USER->uc['edit_showFieldHelp']!='text') {
$funcMenus.= '<br />'.t3lib_BEfunc::getFuncCheck('','SET[showDescriptions]',$this->MOD_SETTINGS['showDescriptions'],'alt_doc.php',t3lib_div::implodeArrayForUrl('',array_merge($this->R_URL_getvars,array('SET'=>''))),'id="checkShowDescriptions"').'<label for="checkShowDescriptions">'.$LANG->sL('LLL:EXT:lang/locallang_core.php:labels.showDescriptions',1).'</label>';
}
// Show disable RTE checkbox:
if ($BE_USER->isRTE()) {
$funcMenus.= '<br />'.t3lib_BEfunc::getFuncCheck('','SET[disableRTE]',$this->MOD_SETTINGS['disableRTE'],'alt_doc.php',t3lib_div::implodeArrayForUrl('',array_merge($this->R_URL_getvars,array('SET'=>''))),'id="checkDisableRTE"').'<label for="checkDisableRTE">'.$LANG->sL('LLL:EXT:lang/locallang_core.php:labels.disableRTE',1).'</label>';
(1-1/2)