1 image.module image_effect_delete($style_name, $effect)

Delete an image effect.

Parameters

$style_name: The image style this effect belongs to.

$effect: An image effect array.

File

core/modules/image/image.module, line 1261
Exposes global functionality for creating image styles.

Code

function image_effect_delete($style_name, $effect) {
  $config = config('image.style.' . $style_name);
  $config->clear('effects.' . $effect['ieid']);
  $config->save();
  $style = image_style_load($style_name);
  image_style_flush($style);
}