You are here

function casetracker_case_state_confirm_delete in Case Tracker 5

Same name and namespace in other branches
  1. 6 casetracker_admin.inc \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.module, line 677
Enables the handling of projects and their cases.

Code

function casetracker_case_state_confirm_delete($csid = NULL) {
  $case_state = casetracker_case_state_load(NULL, $csid);
  $form['csid'] = array(
    '#type' => 'hidden',
    '#default_value' => $csid,
  );
  $form['name'] = array(
    '#type' => 'hidden',
    '#default_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/content/casetracker', t('This action can not be undone.'), t('Delete'), t('Cancel'));
}