Commit 90155726 authored by webchick's avatar webchick
Browse files

#1002396 by yhager: Fixed Missing form_state in callback call in file_managed_file_value

parent 0083fcb5
......@@ -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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment