1 image.admin.inc image_effect_delete_form_submit($form, &$form_state)

Submit handler to delete an image effect.

File

core/modules/image/image.admin.inc, line 424
Admin page callbacks for the Image module.

Code

function image_effect_delete_form_submit($form, &$form_state) {
  $style = $form_state['image_style'];
  $effect = $form_state['image_effect'];

  image_effect_delete($style['name'], $effect);
  backdrop_set_message(t('The image effect %name has been deleted.', array('%name' => $effect['label'])));
  $form_state['redirect'] = 'admin/config/media/image-styles/configure/' . $style['name'];
}