function image_effect_delete

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 1401

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.