function casetracker_case_state_delete in Case Tracker 5
Same name and namespace in other branches
- 6 casetracker.module \casetracker_case_state_delete()
- 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.module - Ayup, the user definitely wants to delete this case state.
File
- ./
casetracker.module, line 533 - Enables the handling of projects and their cases.
Code
function casetracker_case_state_delete($csid = NULL) {
if (!$csid) {
return NULL;
}
// I SHALL NOT DELETE NOTHING! NOTHING AT ALL!
db_query('DELETE FROM {casetracker_case_states} WHERE csid = %d', $csid);
}