When the property #upload_validators is used on a #type => 'file' element, the individual validator functions are not checked against the function registry, meaning it is difficult to include file validators in .inc files. This patch wraps the function calls in drupal_function_exists().

CommentFileSizeAuthor
drupal_file_inc_validator_check.patch810 bytesquicksketch

Comments

ugerhard’s picture

Status: Needs review » Reviewed & tested by the community

This looks reasonable, easy and the Bot likes it.

quicksketch’s picture

Issue tags: +ImageInCore

Adding tag for patches needed for File module (and there for Image).

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD.

Status: Fixed » Closed (fixed)
Issue tags: -D7FileAPIWishlist, -Quick fix, -ImageInCore

Automatically closed -- issue fixed for 2 weeks with no activity.