summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filefield_widget.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/filefield_widget.inc b/filefield_widget.inc
index 36e4ab9..485bb48 100644
--- a/filefield_widget.inc
+++ b/filefield_widget.inc
@@ -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) {