You are here

function image_effect_delete_form_submit in Drupal 7

Submit handler to delete an image effect.

File

modules/image/image.admin.inc, line 467
Administration pages for image settings.

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'];
}