#1002396 by yhager: Fixed Missing form_state in callback call in file_managed_file_value
authorAngie Byron
Wed, 29 Dec 2010 04:35:23 +0000 (04:35 +0000)
committerAngie Byron
Wed, 29 Dec 2010 04:35:23 +0000 (04:35 +0000)
modules/file/file.module

index bbf3a1a..13a8024 100644 (file)
@@ -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.