diff --git a/modules/file/file.module b/modules/file/file.module index bbf3a1ae414f17b09cffa8d2663f7eeb2a9b67a5..13a8024b2033d4ba4e15cf99116d51779b4d1799 100644 --- a/modules/file/file.module +++ b/modules/file/file.module @@ -494,7 +494,7 @@ function file_managed_file_value(&$element, $input = FALSE, $form_state = NULL) // functionality to allow File fields to be extended through FAPI. if (isset($element['#file_value_callbacks'])) { foreach ($element['#file_value_callbacks'] as $callback) { - $callback($element, $input); + $callback($element, $input, $form_state); } } // Load file if the FID has changed to confirm it exists.