Need documentation for #file_value_callbacks property; Missing $form_state in callback call in file_managed_file_value

Created on 19 December 2010, over 14 years ago
Updated 26 March 2025, 14 days ago

The file module allows extending the file field by calling the callbacks listed in $element['#file_value_callbacks'] within file_managed_value().
However, the $form_state variable is missing from the call, so the callbacks are unable to find the field or widget settings.

The attached patch fixes it.

🐛 Bug report
Status

Closed: won't fix

Component

API documentation files

Created by

🇨🇦Canada yhager

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024