function casetracker_case_state_overview in Case Tracker 5
Same name and namespace in other branches
- 6 casetracker_admin.inc \casetracker_case_state_overview()
- 7 casetracker_admin.inc \casetracker_case_state_overview()
Displays an administrative overview of all case states available.
1 string reference to 'casetracker_case_state_overview'
- casetracker_menu in ./
casetracker.module - Implementation of hook_menu().
File
- ./
casetracker.module, line 500 - Enables the handling of projects and their cases.
Code
function casetracker_case_state_overview() {
$rows = array();
$headers = array(
t('Name'),
t('Realm'),
array(
'data' => t('Operations'),
'colspan' => 2,
),
);
foreach (array(
'priority',
'status',
'type',
) as $realm) {
foreach (casetracker_case_state_load($realm) as $csid => $name) {
$rows[] = array(
l($name, 'casetracker/cases/all/state/' . $csid),
$realm,
l(t('edit'), 'admin/content/casetracker/state/edit/' . $csid),
l(t('delete'), 'admin/content/casetracker/state/delete/' . $csid),
);
}
}
return theme('table', $headers, $rows);
}