You are here

function calendar_systems_profile_delete_confirm_submit in Calendar Systems 6.3

Same name and namespace in other branches
  1. 8 calendar_systems.admin.inc \calendar_systems_profile_delete_confirm_submit()
  2. 6 calendar_systems.admin.inc \calendar_systems_profile_delete_confirm_submit()
  3. 7.3 calendar_systems.admin.inc \calendar_systems_profile_delete_confirm_submit()
  4. 7 calendar_systems.admin.inc \calendar_systems_profile_delete_confirm_submit()
  5. 7.2 calendar_systems.admin.inc \calendar_systems_profile_delete_confirm_submit()

Submit callback for Calendar systems profile delete form.

See also

calendar_systems_profile_delete_confirm()

File

./calendar_systems.admin.inc, line 475
Integrate Calendar systems editors into Drupal.

Code

function calendar_systems_profile_delete_confirm_submit($form, &$form_state) {
  $format = $form_state['values']['format'];
  calendar_systems_profile_delete($format->format);
  drupal_set_message(t('Calendar systems profile for %name has been deleted.', array(
    '%name' => $format->name,
  )));
  $form_state['redirect'] = 'admin/settings/calendar_systems';
}