function uc_coupon_reports_form_submit in Ubercart Discount Coupons 5
Same name and namespace in other branches
- 6 uc_coupon.reports.inc \uc_coupon_reports_form_submit()
- 7.3 uc_coupon.reports.inc \uc_coupon_reports_form_submit()
- 7.2 uc_coupon.reports.inc \uc_coupon_reports_form_submit()
Handle form submit and assign variables
File
- ./
uc_coupon.module, line 1167 - Provides discount coupons for Ubercart.
Code
function uc_coupon_reports_form_submit($form_id, $form_values) {
$start = mktime(0, 0, 0, $form_values['start']['month'], $form_values['start']['day'], $form_values['start']['year']);
$end = mktime(23, 59, 59, $form_values['end']['month'], $form_values['end']['day'], $form_values['end']['year']);
$statuses = implode(',', array_keys($form_values['status']));
drupal_goto('admin/store/reports/coupon/' . $start . '/' . $end . '/' . $statuses);
}