Feature #17606 » 0006346.patch
t3lib/class.t3lib_tceforms.php (Arbeitskopie) | ||
---|---|---|
// onFocus attribute to add to the field:
|
||
$PA['onFocus'] = ($palJSfunc && !$BE_USER->uc['dontShowPalettesOnFocusInAB']) ? ' onfocus="'.htmlspecialchars($palJSfunc).'"' : '';
|
||
// Find item
|
||
$item='';
|
||
$PA['label'] = $PA['altName'] ? $PA['altName'] : $PA['fieldConf']['label'];
|
||
// Use the label from Page TSconfig TCEFORM.<table>.<column>.label if set:
|
||
if (isset($PA['fieldTSConfig']['label'])) {
|
||
$PA['label'] = $PA['fieldTSConfig']['label'];
|
||
// Use the alternative label from the types section of the TCA:
|
||
} elseif ($PA['altName']) {
|
||
$PA['label'] = $PA['altName'];
|
||
// Use the regular label from the field config of the TCA:
|
||
} else {
|
||
$PA['label'] = $PA['fieldConf']['label'];
|
||
}
|
||
$PA['label'] = $this->sL($PA['label']);
|
||
// JavaScript code for event handlers:
|
||
$PA['fieldChangeFunc']=array();
|