You are here

function casetracker_case_state_confirm_delete_submit in Case Tracker 6

Same name and namespace in other branches
  1. 5 casetracker.module \casetracker_case_state_confirm_delete_submit()
  2. 7 casetracker_admin.inc \casetracker_case_state_confirm_delete_submit()

Ayup, the user definitely wants to delete this case state.

File

./casetracker_admin.inc, line 238

Code

function casetracker_case_state_confirm_delete_submit($form, &$form_state) {
  drupal_set_message(t('Deleted case state %name.', array(
    '%name' => $form_state['values']['name'],
  )));
  casetracker_case_state_delete($form_state['values']['csid']);
  $form_state['redirect'] = 'admin/settings/casetracker/states';
}