function image_effect_delete_form_submit

Submit handler to delete an image effect.

File

modules/image/image.admin.inc, line 480

Code

function image_effect_delete_form_submit($form, &$form_state) {
    $style = $form_state['image_style'];
    $effect = $form_state['image_effect'];
    image_effect_delete($effect);
    drupal_set_message(t('The image effect %name has been deleted.', array(
        '%name' => $effect['label'],
    )));
    $form_state['redirect'] = 'admin/config/media/image-styles/edit/' . $style['name'];
}

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