You are here

function casetracker_actions_set_status_action_form in Case Tracker 6

Same name and namespace in other branches
  1. 7 casetracker_actions/casetracker_actions.module \casetracker_actions_set_status_action_form()

Select a status condition for the Set Status action.

File

casetracker_actions/casetracker_actions.module, line 136
casetracker_actions.module

Code

function casetracker_actions_set_status_action_form($context) {
  $case_status_options = casetracker_realm_load('status');
  $default_status = variable_get('casetracker_default_case_status', key($case_status_options));
  $form['casetracker_actions_status'] = array(
    '#title' => t('Status'),
    '#type' => 'select',
    '#description' => t('The case will be updated with the status selected above.'),
    '#default_value' => $default_status,
    '#options' => $case_status_options,
  );
  return $form;
}