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
    }
  }
CommentFileSizeAuthor
#1 cck-fieldgroup-1244534-1.patch7.06 KBmikeytown2
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikeytown2’s picture

Status: Active » Needs review
FileSize
7.06 KB

patch also contains minor white space fixes