Actions
Feature #19054
closedhook before_render a single field in tceforms
Start date:
2008-07-03
Due date:
% Done:
0%
Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:
Description
adds a hook in function "getSingleField_SW" before rendering of single fields in tceforms.
the hook can be used to add addtional config options in the tca array, to in influence the rendering of the field.
i used it to render some fields "readOnly" based on logged in be_user. ex:
function getSingleField_beforeRender($table,$field,$row,&$PA) {
if (is_array($PA['fieldConf']['config']['readOnlyGroups'])) {
if (count(array_intersect($PA['fieldConf']['config']['readOnlyGroups'], $GLOBALS['BE_USER']->userGroupsUID))>0) {
$PA['fieldConf']['config']['readOnly'] = true;
}
}
}
pending in core list
(issue imported from #M8890)
Files
Updated by Oliver Hader about 16 years ago
Committed to SVN Trunk (rev. 3933) by Dmitry
Actions