function stats_report_major_students_progress_form_submit
Search API
7.x reports.major-students-progress.inc | stats_report_major_students_progress_form_submit($form, $form_state) |
6.x reports.major-students-progress.inc | stats_report_major_students_progress_form_submit($form, $form_state) |
Our submit handler. We will be setting up a new batch process.
_state
Parameters
unknown_type $form:
File
- modules/
stats/ reports.major-students-progress.inc, line 114 - This file handles the more complicated Major Students Progress csv export report, since it is part of a batch process.
Code
function stats_report_major_students_progress_form_submit($form, $form_state) {
$major = $form_state ["values"]["major"];
$school_id = intval($form_state ['values']['school_id']);
// Okay, set up the batch....
$batch = array(
"operation" => array("stats_report_major_students_progress_perform_batch_operation", array($major, $school_id)),
"title" => t("Major Students Progress - CSV Export - Major: ") . $major,
"file" => menu_get_module_path("stats") . "/reports.major-students-progress.inc",
"progress_message" => "Processing student @current of @total",
"display_percent" => TRUE,
);
watchdog('stats', "report_major_students_progress major:$major, school_id:$school_id", array());
// Set the batch...
batch_set($batch);
}