Skip to content
Snippets Groups Projects
Commit 69287245 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #286374 by jhodgdon: fixed documentation of file_save_upload() validators.

parent 31dbee54
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -875,7 +875,7 @@ function file_space_used($uid = NULL, $status = FILE_STATUS_PERMANENT) { ...@@ -875,7 +875,7 @@ function file_space_used($uid = NULL, $status = FILE_STATUS_PERMANENT) {
* A string specifying the name of the upload field to save. * A string specifying the name of the upload field to save.
* @param $validators * @param $validators
* An optional, associative array of callback functions used to validate the * An optional, associative array of callback functions used to validate the
* file. See @file_validate for a full discussion of the array format. * file. See file_validate() for a full discussion of the array format.
* @param $destination * @param $destination
* A string containing the directory $source should be copied to. If this is * A string containing the directory $source should be copied to. If this is
* not provided or is not writable, the temporary directory will be used. * not provided or is not writable, the temporary directory will be used.
...@@ -1026,8 +1026,8 @@ function file_save_upload($source, $validators = array(), $destination = FALSE, ...@@ -1026,8 +1026,8 @@ function file_save_upload($source, $validators = array(), $destination = FALSE,
* @param $validators * @param $validators
* An optional, associative array of callback functions used to validate the * An optional, associative array of callback functions used to validate the
* file. The keys are function names and the values arrays of callback * file. The keys are function names and the values arrays of callback
* parameters which will be passed in after the user and file objects. The * parameters which will be passed in after the file object. The
* functions should return an array of error messages, an empty array * functions should return an array of error messages; an empty array
* indicates that the file passed validation. The functions will be called in * indicates that the file passed validation. The functions will be called in
* the order specified. * the order specified.
* @return * @return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment