function stats_report_activity_audit_form_submit
Search API
| 7.x reports.activity-audit.inc | stats_report_activity_audit_form_submit($form, $form_state) |
File
- modules/
stats/ reports.activity-audit.inc, line 85
Code
function stats_report_activity_audit_form_submit($form, $form_state) {
unset($_SESSION ["stats_report_activity_audit_batch_results"]);
$start = $form_state ['values']['start_date'];
$end = $form_state ['values']['end_date'];
if ($end == '') {
$end = date('Y-m-d');
}
if ($start == '') {
$start = date('Y-m-d');
}
$start .= " 00:00:00";
$end .= " 23:23:59";
// Okay, set up the batch....
$batch = array(
"operation" => array("stats_report_activity_audit_perform_batch_operation", array($start, $end)),
"title" => t("Activity Audit - CSV Export - Time Range: ") . $start . ' - ' . $end,
"file" => menu_get_module_path("stats") . "/reports.activity-audit.inc",
"progress_message" => "Processing record @current of @total",
"display_percent" => TRUE,
);
watchdog('stats', "report_activity_audit range:$start to $end", array());
// Set the batch...
batch_set($batch);
}
