You are here

function casetracker_case_state_confirm_delete in Case Tracker 6

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

If the user has asked to delete a case state, we'll double-check.

1 string reference to 'casetracker_case_state_confirm_delete'
casetracker_menu in ./casetracker.module
Implementation of hook_menu().

File

./casetracker_admin.inc, line 223

Code

function casetracker_case_state_confirm_delete(&$form_state, $case_state) {
  if (!empty($case_state)) {
    $form = array(
      'csid' => array(
        '#type' => 'value',
        '#value' => $case_state->csid,
      ),
      'name' => array(
        '#type' => 'value',
        '#value' => $case_state->name,
      ),
    );
    return confirm_form($form, t('Are you sure you want to delete the case state %name?', array(
      '%name' => $case_state->name,
    )), 'admin/settings/casetracker/states', t('This action can not be undone.'), t('Delete'), t('Cancel'));
  }
}