Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Notice: Undefined index: field_* in fieldgroup_view_group() (line 936 of fieldgroup/fieldgroup.module).
if (isset($node_copy->{$field_name})) {
$items = $node_copy->{$field_name};
// One-field equivalent to _content_field_invoke('sanitize').
$module = $field_types[$field['type']]['module'];
$function = $module .'_field';
if (function_exists($function)) {
$function('sanitize', $node_copy, $field, $items, $teaser, $page);
$node_copy->{$field_name} = $items;
}
$field_view = content_field('view', $node_copy, $field, $items, $teaser, $page);
// content_field('view') adds a wrapper to handle variables and 'excluded'
// fields for node templates. We bypass it and get the actual field.
$node_copy->content[$field_name] = $field_view[$field_name]; //LINE IN QUESTION
}
Notice: Undefined index: depth in fieldgroup_build_content() (line 840 of fieldgroup/fieldgroup.module).
foreach ($group['fields'] as $field_name => $field) {
if (isset($node->content[$field_name])) {
$element[$field_name] = $node->content[$field_name];
$element[$field_name]['#weight'] = $field['weight'];
$element[$field_name]['#depth'] = $field['depth']; // LINE IN QUESTION
}
}
Comment | File | Size | Author |
---|---|---|---|
#1 | cck-fieldgroup-1244534-1.patch | 7.06 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedpatch also contains minor white space fixes