I'm using this module with CCK3 (D6) and it works well for individual fields I can't get it to pick up multigroups. I see from the notes that it should be #group_name but when I dpm($form) I don't see #group_name. I have tried both the lable and field name but to no avail.

Comments

kbk’s picture

At a second glance, it looks like the code to change the button's name is not executed in the multigroup part of the module:

        elseif (isset($elements[$key][$key .'_add_more']['#group_name'])) {

          // Obtain information about the multigroup.
          $groups = fieldgroup_groups($type_name);
          $group = $groups[$key];

          // Change the label of the button.
          $elements[$key][$key .'_add_more']['#value'] = t('Add another item to @name', array('@name' => t($group['label'$
        }

kbk’s picture

Category: support » bug