You are here

function image_effect_delete in Drupal 7

Deletes an image effect.

Parameters

$effect: An image effect array.

2 calls to image_effect_delete()
ImageDimensionsTestCase::testImageDimensions in modules/image/image.test
Test styled image dimensions cumulatively.
image_effect_delete_form_submit in modules/image/image.admin.inc
Submit handler to delete an image effect.

File

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

Code

function image_effect_delete($effect) {
  db_delete('image_effects')
    ->condition('ieid', $effect['ieid'])
    ->execute();
  $style = image_style_load(NULL, $effect['isid']);
  image_style_flush($style);
}