Commit d44502cc authored by Bernhard Kraft's avatar Bernhard Kraft
Browse files

Added post-process Hook in class.t3lib_befunc.php for method "getFlexFormDS"


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@678 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 61be9022
2005-04-27 Kraft Bernhard <kraftb@kraftb.at>
* Added post-process Hook in class.t3lib_befunc.php for method "getFlexFormDS"
2005-04-27 Rupert Germann <rupi@gmx.li>
* fix for bug 536: removed a hardcoded tt_news reference which inserted the admin name as news author.
......
......@@ -942,7 +942,8 @@ class t3lib_BEfunc {
* @return mixed If array, the data structure was found and returned as an array. Otherwise (string) it is an error message.
* @see t3lib_TCEforms::getSingleField_typeFlex()
*/
function getFlexFormDS($conf,$row,$table) {
function getFlexFormDS($conf,$row,$table, $fieldName = '') {
global $TYPO3_CONF_VARS;
// Get pointer field etc from TCA-config:
$ds_pointerField = $conf['ds_pointerField'];
......@@ -1012,6 +1013,17 @@ class t3lib_BEfunc {
}
} else $dataStructArray='No source value in fieldname "'.$ds_pointerField.'"'; // Error message.
} else $dataStructArray='No proper configuration!';
// Hook for post-processing the Flexform DS. Introduces the possibility to configure Flexforms via TSConfig
if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['getFlexFormDSClass'])) {
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['getFlexFormDSClass'] as $classRef) {
$hookObj = &t3lib_div::getUserObj($classRef);
if (method_exists($hookObj, 'getFlexFormDS_postProcessDS')) {
$hookObj->getFlexFormDS_postProcessDS($dataStructArray, $conf, $row, $table, $fieldName);
}
}
}
return $dataStructArray;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment