function _uc_coupon_mktime in Ubercart Discount Coupons 7.3
Same name and namespace in other branches
- 6 uc_coupon.admin.inc \_uc_coupon_mktime()
- 7.2 uc_coupon.admin.inc \_uc_coupon_mktime()
2 calls to _uc_coupon_mktime()
- uc_coupon_add_form_submit in ./
uc_coupon.admin.inc - Coupon form submit handler.
- uc_coupon_add_form_validate in ./
uc_coupon.admin.inc - Coupon form validate handler.
File
- ./
uc_coupon.admin.inc, line 1104 - Discount Coupons administration pages.
Code
function _uc_coupon_mktime($month, $day, $year) {
$func = variable_get('uc_coupon_expiry_timezone', 0) ? 'mktime' : 'gmmktime';
$hour = variable_get('uc_coupon_expiry_hour', 0);
$time = $func($hour, 0, 0, $month, $day, $year);
return $func($hour, 0, 0, $month, $day, $year);
}