Feature #20520 » t3lib_tceforms-new.diff
typo3_cureent/t3lib/class.t3lib_tceforms.php 2009-07-08 10:30:48.000000000 +0200 | ||
---|---|---|
function getSingleField_typeSelect($table,$field,$row,&$PA) {
|
||
global $TCA;
|
||
foreach ($this->hookObjectsSingleField as $hookObj) {
|
||
if (method_exists($hookObj,'getSingleField_typeSelect_preProcess')) {
|
||
$hookObj->getSingleField_typeSelect_preProcess($table, $field, $row, $PA);
|
||
}
|
||
}
|
||
// Field configuration from TCA:
|
||
$config = $PA['fieldConf']['config'];
|
||
... | ... | |
$typeNum = (string)$typeNum; // Force to string. Necessary for eg '-1' to be recognized as a type value.
|
||
if (!$TCA[$table]['types'][$typeNum]) { // However, if the type "0" is not found in the "types" array, then default to "1" (for historical reasons)
|
||
$typeNum = 1;
|
||
}
|
||
foreach ($this->hookObjectsMainFields as $hookObj) {
|
||
if (method_exists($hookObj,'getRTypeNum_postProcess')) {
|
||
$hookObj->getRTypeNum_postProcess($table,$row,$typeNum);
|
||
}
|
||
}
|
||
return $typeNum;
|
- « Previous
- 1
- 2
- Next »