function casetracker_case_state_overview in Case Tracker 7
Same name and namespace in other branches
- 5 casetracker.module \casetracker_case_state_overview()
- 6 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 - Implements hook_menu().
File
- ./
casetracker_admin.inc, line 182
Code
function casetracker_case_state_overview() {
$rows = array();
$header = array(
t('Name'),
t('Realm'),
array(
'data' => t('Operations'),
'colspan' => 2,
),
);
foreach (array(
'priority',
'status',
'type',
) as $realm) {
foreach (casetracker_realm_load($realm, FALSE) as $csid => $name) {
$rows[] = array(
check_plain($name),
$realm,
l(t('edit'), 'admin/config/casetracker/states/edit/' . $csid),
l(t('delete'), 'admin/config/casetracker/states/delete/' . $csid),
);
}
}
$build = array();
$build['table'] = array(
'#theme' => 'table',
'#header' => $header,
'#rows' => $rows,
);
return $build;
}