Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3485117
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-3485117
Commits
7aba3043
Commit
7aba3043
authored
14 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#1051038
by mr.baileys: incorrect return info on image_style_create_derivative().
parent
d654ff6d
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
modules/image/image.module
+10
-3
10 additions, 3 deletions
modules/image/image.module
with
10 additions
and
3 deletions
modules/image/image.module
+
10
−
3
View file @
7aba3043
...
...
@@ -713,7 +713,11 @@ function image_style_deliver($style, $scheme) {
}
/**
* Create a new image based on an image style.
* Creates a new image derivative based on an image style.
*
* Generates an image derivative by creating the destination folder (if it does
* not already exist), applying all image effects defined in $style['effects'],
* and saving a cached version of the resulting image.
*
* @param $style
* An image style array.
...
...
@@ -721,9 +725,12 @@ function image_style_deliver($style, $scheme) {
* Path of the source file.
* @param $destination
* Path or URI of the destination file.
*
* @return
* TRUE if an image derivative is generated, FALSE if no image derivative
* is generated. NULL if the derivative is being generated.
* TRUE if an image derivative was generated, or FALSE if the image derivative
* could not be generated.
*
* @see image_style_load()
*/
function
image_style_create_derivative
(
$style
,
$source
,
$destination
)
{
// Get the folder for the final location of this style.
...
...
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