2 * Implements hook_image_styles_alter().
4 function {{ machine_name }}_image_styles_alter(&$styles) {
5 // Check that we only affect a default style.
6 if ($styles['thumbnail']['storage'] == IMAGE_STORAGE_DEFAULT) {
7 // Add an additional effect to the thumbnail style.
8 $styles['thumbnail']['effects'][] = array(
9 'name' => 'image_desaturate',
12 'effect callback' => 'image_desaturate_effect',