function casetracker_case_state_delete in Case Tracker 7
Same name and namespace in other branches
- 5 casetracker.module \casetracker_case_state_delete()
- 6 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 908 - Enables the handling of projects and their cases.
Code
function casetracker_case_state_delete($csid = NULL) {
if (!empty($csid)) {
db_delete('casetracker_case_states')
->condition('csid', $csid)
->execute();
}
}