summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-02-04 18:38:17 +0000
committerDries Buytaert <dries@buytaert.net>2011-02-04 18:38:17 +0000
commit7aba30430c2d627935b4ce7bf8894e51d4a45ecc (patch)
tree345cc334ff5efe237ca3d0d7b19994041348855a /modules
parentd654ff6ddec48348dcf2ce056d6de2f0995e2e5e (diff)
downloadbrdo-7aba30430c2d627935b4ce7bf8894e51d4a45ecc.tar.gz
brdo-7aba30430c2d627935b4ce7bf8894e51d4a45ecc.tar.bz2
- Patch #1051038 by mr.baileys: incorrect return info on image_style_create_derivative().
Diffstat (limited to 'modules')
-rw-r--r--modules/image/image.module13
1 files changed, 10 insertions, 3 deletions
diff --git a/modules/image/image.module b/modules/image/image.module
index 23f2e9b5d..bb2953142 100644
--- a/modules/image/image.module
+++ b/modules/image/image.module
@@ -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.