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
No related merge requests found
......@@ -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.
* @param $validators
* 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
* 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.
......@@ -1026,8 +1026,8 @@ function file_save_upload($source, $validators = array(), $destination = FALSE,
* @param $validators
* An optional, associative array of callback functions used to validate the
* 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
* functions should return an array of error messages, an empty array
* parameters which will be passed in after the file object. The
* functions should return an array of error messages; an empty array
* indicates that the file passed validation. The functions will be called in
* the order specified.
* @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