Project

General

Profile

Feature #24309 » patch-09-12-2010.patch

Administrator Admin, 2010-12-09 21:10

View differences:

class.t3lib_iconworks.php Locally Modified (Based On LOCAL)
'noIconFound' => ($row['_NO_ICON_FOUND'] ? TRUE : FALSE),
);
// Add custom status icons from TCA
if(is_array($tcaCtrl['status_fields'])) {
foreach($tcaCtrl['status_fields'] as $fldName => $fldConfig) {
if($tcaCtrl['enablecolumns'][$fldName]) {
// Extend default statuses
$status[$fldName] = ($row[$fldName] ? TRUE : FALSE);
// Add configured icon to sprite
t3lib_SpriteManager::addSingleIcons(array(
$fldName => $fldConfig['icon'],
));
// Append name to global priority array. Make it last in queue.
array_push($GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'], $fldName);
// Extend sprites class mapping
$GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames'][$fldName] = 'extensions--'.$fldName;
}
}
}
// Icon state based on "enableFields":
if (is_array($tcaCtrl['enablecolumns'])) {
$enCols = $tcaCtrl['enablecolumns'];
(3-3/6)