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

Submit handler to delete an image style.

File

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

Code

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

  image_style_delete($style, $form_state['values']['replacement']);
  backdrop_set_message(t('Style %name was deleted.', array('%name' => $style['label'])));
  $form_state['redirect'] = 'admin/config/media/image-styles';
}