You are here

function support_pm_admin_reports_submit in Support Ticketing System 7

Same name and namespace in other branches
  1. 6 support_pm/support_pm.admin.inc \support_pm_admin_reports_submit()

File

support_pm/support_pm.admin.inc, line 309

Code

function support_pm_admin_reports_submit($form, &$form_state) {
  $args = array();
  $args['rp'] = $form_state['values']['report_period'];
  $args['rt'] = $form_state['values']['report_type'];
  if (!empty($form_state['values']['report_role'])) {
    $args['rr'] = implode(',', $form_state['values']['report_role']);
  }
  if (!empty($form_state['values']['report_client'])) {
    $args['rc'] = implode(',', $form_state['values']['report_client']);
  }
  drupal_goto('admin/support/plan_report', array(
    'query' => $args,
  ));
}