#635240 by markus_petrux: Filefield with Image widget in Multigroup - missing label.
authorNathan Haug
Sat, 24 Apr 2010 01:19:50 +0000 (01:19 +0000)
committerNathan Haug
Sat, 24 Apr 2010 01:19:50 +0000 (01:19 +0000)
filefield_widget.inc

index 36e4ab9..485bb48 100644 (file)
@@ -243,7 +243,7 @@ function filefield_widget_process($element, $edit, &$form_state, $form) {
   $delta = $element['#delta'];
   $element['#theme'] = 'filefield_widget_item';
 
-  $field = content_fields($element['#field_name'], $element['#type_name']);
+  $field = $form['#field_info'][$field_name];
 
   // Title is not necessary for each individual field.
   if ($field['multiple'] > 0) {