function styles_ui_delete_confirm_submit in Styles 7.2
Process style delete confirm submissions.
File
- contrib/
styles_ui/ styles_ui.admin.inc, line 347 - Administrative page callbacks for the Styles UI module.
Code
function styles_ui_delete_confirm_submit($form, &$form_state) {
$field_type = $form_state['values']['field_type'];
$style_name = $form_state['values']['style_name'];
$containers = styles_default_containers($field_type);
styles_style_delete($field_type, $style_name);
// Redirect to this style's edit page.
$form_state['redirect'] = $containers['admin']['path'];
}