You are here

function casetracker_dashboard_admin_form_submit in Case Tracker 5

Form submit hook

Parameters

string:

array:

Return value

void

File

./casetracker_dashboard.module, line 139

Code

function casetracker_dashboard_admin_form_submit($_formId, $_formValues) {
  if ($_formValues['op'] == t('Save configuration')) {

    // get the states
    $states = casetracker_case_state_load('status');
    $settings = array();
    foreach ($states as $csid => $title) {
      $settings[$csid] = isset($_formValues[$csid]) ? (bool) $_formValues[$csid] : false;
    }
    variable_set('casetracker_dashboard_states_done', $settings);
    drupal_set_message(t('The configuration options have been saved.'));
  }
}