function casetracker_actions_set_type_action_form in Case Tracker 7
Same name and namespace in other branches
- 6 casetracker_actions/casetracker_actions.module \casetracker_actions_set_type_action_form()
Select a type for the Set Type action.
File
- casetracker_actions/
casetracker_actions.module, line 166 - casetracker_actions.module
Code
function casetracker_actions_set_type_action_form($context) {
$case_type_options = casetracker_realm_load('type');
$default_type = variable_get('casetracker_default_case_type', key($case_type_options));
$form['casetracker_actions_type'] = array(
'#title' => t('Type'),
'#type' => 'select',
'#description' => t('The case will be updated with the type selected above.'),
'#default_value' => $default_type,
'#options' => $case_type_options,
);
return $form;
}