Project

General

Profile

Feature #15893 » patch_class.db_list_extra.inc

Administrator Admin, 2006-03-24 15:37

 
--- D:\Eigene Dateien\Temp\label_user_func\class.db_list_extra.inc Tue Mar 21 20:56:54 2006
+++ D:\Eigene Dateien\Temp\label_user_func\class.db_list_extra.new.inc Wed Mar 22 07:38:35 2006
@@ -598,6 +598,15 @@
} else {
$recTitle = t3lib_BEfunc::getProcessedValueExtra($table,$fCol,$row[$fCol],$GLOBALS['BE_USER']->uc['titleLen'],$row['uid']);
}
+
+ // Check if the label shall be determined by a user-function
+ if ($GLOBALS['TCA'][$table]['ctrl']['label_user_func']) {
+ $params['title'] = $recTitle;
+ $params['table'] = $table;
+ $params['row'] = $row;
+ $recTitle = t3lib_div::callUserFunction($GLOBALS['TCA'][$table]['ctrl']['label_user_func'], &$params, &$this);
+ }
+
$theData[$fCol] = $this->linkWrapItems($table,$row['uid'],$recTitle,$row);
} elseif ($fCol=='pid') {
$theData[$fCol]=$row[$fCol];
(3-3/5)