#658056 by theunraveler: image.api.php cleanup.

merge-requests/26/head
Angie Byron 2010-02-01 07:07:57 +00:00
parent 9a887f8626
commit 4cc54a5b1c
1 changed files with 3 additions and 3 deletions

View File

@ -88,8 +88,7 @@ function hook_image_style_delete($style) {
* images are being deleted from the server and regenerated). Any * images are being deleted from the server and regenerated). Any
* module-specific caches that contain information related to the style should * module-specific caches that contain information related to the style should
* be cleared using this hook. This hook is called whenever a style is updated, * be cleared using this hook. This hook is called whenever a style is updated,
* deleted, any effect associated with the style is update or deleted, or when * deleted, or any effect associated with the style is update or deleted.
* the user selects the style flush option.
* *
* @param $style * @param $style
* The image style array that is being flushed. * The image style array that is being flushed.
@ -119,7 +118,7 @@ function hook_image_style_flush($style) {
* *
* @see hook_image_default_styles() * @see hook_image_default_styles()
*/ */
function hook_image_styles_alter($styles) { function hook_image_styles_alter(&$styles) {
// Check that we only affect a default style. // Check that we only affect a default style.
if ($styles['thumbnail']['storage'] == IMAGE_STORAGE_DEFAULT) { if ($styles['thumbnail']['storage'] == IMAGE_STORAGE_DEFAULT) {
// Add an additional effect to the thumbnail style. // Add an additional effect to the thumbnail style.
@ -127,6 +126,7 @@ function hook_image_styles_alter($styles) {
'name' => 'image_desaturate', 'name' => 'image_desaturate',
'data' => array(), 'data' => array(),
'weight' => 1, 'weight' => 1,
'effect callback' => 'image_desaturate_effect',
); );
} }
} }