API page: file_field_widget_upload_validators()

In a function file_field_widget_upload_validators, the $field parameter is not used at all. Is it necessary? Should we remove it? The function is called in file_field_widget_form. We will need to make the change there as well. After making this change, it is going to affect the contributed modules calling that function. How should we take care of that?

Comments

tanmayk created an issue. See original summary.

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.