You are here

function skinr_ui_delete_confirm_submit in Skinr 7.2

Same name and namespace in other branches
  1. 6.2 skinr_ui.admin.inc \skinr_ui_delete_confirm_submit()

Form submission handler for skinr_ui_delete_confirm().

File

./skinr_ui.admin.inc, line 1284
Admin page callbacks for the Skinr UI module.

Code

function skinr_ui_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    skinr_skin_delete($form_state['values']['sid']);
    watchdog('skinr', 'Deleted a skin configuration.');
    drupal_set_message(t('A skin configuration has been deleted.'));
  }
  $form_state['redirect'] = 'admin/structure/skinr';
}