You are here

function skinr_ui_revert_confirm_submit in Skinr 7.2

Form submission handler for skinr_ui_revert_confirm().

File

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

Code

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