Project

General

Profile

Feature #15893 » patch_class.t3lib_tceforms.php

Administrator Admin, 2006-03-24 15:36

 
--- D:\Eigene Dateien\Temp\label_user_func\class.t3lib_tceforms.php Tue Mar 21 20:57:33 2006
+++ D:\Eigene Dateien\Temp\label_user_func\class.t3lib_tceforms.new.php Wed Mar 22 07:43:16 2006
@@ -803,6 +803,16 @@
$item='';
$PA['label'] = $PA['altName'] ? $PA['altName'] : $PA['fieldConf']['label'];
$PA['label'] = $this->sL($PA['label']);
+
+ // Check if the label shall be determined by a user-function
+ if ($PA['fieldConf']['label_user_func']) {
+ $params['table'] = $table;
+ $params['field'] = $field;
+ $params['row'] = $row;
+ $params['PA'] = $PA;
+ $PA['label'] = t3lib_div::callUserFunction($PA['fieldConf']['label_user_func'], &$params, &$this);
+ }
+
// JavaScript code for event handlers:
$PA['fieldChangeFunc']=array();
$PA['fieldChangeFunc']['TBE_EDITOR_fieldChanged'] = "TBE_EDITOR_fieldChanged('".$table."','".$row['uid']."','".$field."','".$PA['itemFormElName']."');";
(1-1/5)