Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3174996
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3174996
Commits
69287245
Commit
69287245
authored
15 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#286374
by jhodgdon: fixed documentation of file_save_upload() validators.
parent
31dbee54
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/file.inc
+3
-3
3 additions, 3 deletions
includes/file.inc
with
3 additions
and
3 deletions
includes/file.inc
+
3
−
3
View file @
69287245
...
...
@@ -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 object
s
. 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment