function image_style_delete_form_submit

Submit handler to delete an image style.

File

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

Code

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

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