function fieldgroup_wrapper_post_render in Content Construction Kit (CCK) 6.3
Same name and namespace in other branches
- 6.2 modules/fieldgroup/fieldgroup.module \fieldgroup_wrapper_post_render()
Hide specified fields from the $content variable in node templates.
1 string reference to 'fieldgroup_wrapper_post_render'
- fieldgroup_build_content in modules/
fieldgroup/ fieldgroup.module - Build the node content element needed to render a fieldgroup.
File
- modules/
fieldgroup/ fieldgroup.module, line 953 - Create field groups for CCK fields.
Code
function fieldgroup_wrapper_post_render($content, $element) {
$groups = fieldgroup_groups($element['#type_name']);
$group = $groups[$element['#group_name']];
// The display settings are not in quite the same place in the
// group and the field, so create the value the theme will expect.
$group['display_settings'] = $group['settings']['display'];
if (theme('content_exclude', $content, $group, $element['#context'])) {
return '';
}
return $content;
}