Problem/Motivation

file_validate() only accepts functions are file validators. No other callable types are allowed.

Proposed resolution

Allow any callable that can be defined as a string (because they are used as array keys in function parameters and we cannot change that).

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#3 drupal_2585115_3.patch2.44 KBxano
#3 interdiff.txt550 bytesxano
#2 drupal_2585115_2.patch2.34 KBxano

Comments

Xano created an issue. See original summary.

xano’s picture

Status: Active » Needs review
StatusFileSize
new2.34 KB
xano’s picture

StatusFileSize
new550 bytes
new2.44 KB

Small documentation fix.

dave reid’s picture

Issue tags: +callables

Status: Needs review » 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.