You are here

function skinr_ui_settings_multiple_delete_confirm_submit in Skinr 6.2

1 string reference to 'skinr_ui_settings_multiple_delete_confirm_submit'
skinr_ui_settings_multiple_delete_confirm in ./skinr_ui.admin.inc

File

./skinr_ui.admin.inc, line 1080
Admin page callbacks for the skinr module.

Code

function skinr_ui_settings_multiple_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    foreach ($form_state['values']['skinr_settings'] as $skinr_setting => $value) {
      $parts = explode('__', $skinr_setting, 3);
      $skinr = new StdClass();
      $skinr->theme = $parts[0];
      $skinr->module = $parts[1];
      $skinr->sid = $parts[2];
      $skinr->skins = array();
      skinr_set($skinr);
    }
    drupal_set_message(t('The items have been deleted.'));
  }
  $form_state['redirect'] = 'admin/build/skinr';
  return;
}