Project

General

Profile

Feature #15893 » patch_class.t3lib_befunc.php

Administrator Admin, 2006-03-24 15:37

 
--- D:\Eigene Dateien\Temp\label_user_func\class.t3lib_befunc.php Tue Mar 21 20:56:17 2006
+++ D:\Eigene Dateien\Temp\label_user_func\class.t3lib_befunc.new.php Wed Mar 22 07:40:48 2006
@@ -1810,6 +1810,15 @@
}
if ($TCA[$table]['ctrl']['label_alt_force']) $t=implode(', ',$tA);
}
+
+ // Check if the label shall be determined by a user-function
+ if ($TCA[$table]['ctrl']['label_user_func']) {
+ $params['title'] = $t;
+ $params['table'] = $table;
+ $params['row'] = $row;
+ $t = t3lib_div::callUserFunction($TCA[$table]['ctrl']['label_user_func'], &$params, &$this);
+ }
+
if ($prep) {
$t = htmlspecialchars(t3lib_div::fixed_lgd_cs($t,$GLOBALS['BE_USER']->uc['titleLen']));
if (!strcmp(trim($t),'')) $t='<em>['.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.no_title',1).']</em>';
(2-2/5)