You are here

function casetracker_case_state_delete in Case Tracker 6

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

Deletes a case state.

@todo There is currently no attempt to do anything with cases which have been assigned the $csid that is about to be deleted. We should reset them to the default per our settings (and warn the user on our confirmation page), or something else entirely.

Parameters

$csid: The case state ID to delete.

1 call to casetracker_case_state_delete()
casetracker_case_state_confirm_delete_submit in ./casetracker_admin.inc
Ayup, the user definitely wants to delete this case state.

File

./casetracker.module, line 668
Enables the handling of projects and their cases.

Code

function casetracker_case_state_delete($csid = NULL) {
  if (!empty($csid)) {
    db_query('DELETE FROM {casetracker_case_states} WHERE csid = %d', $csid);
  }
}