function uc_coupon_init in Ubercart Discount Coupons 6
Same name and namespace in other branches
- 7.3 uc_coupon.module \uc_coupon_init()
- 7.2 uc_coupon.module \uc_coupon_init()
Implementation of hook_init().
File
- ./
uc_coupon.module, line 201 - Provides discount coupons for Ubercart.
Code
function uc_coupon_init() {
global $conf;
$conf['i18n_variables'][] = 'uc_coupon_pane_description';
// Auto apply coupon from query string, if configured.
if ($param = variable_get('uc_coupon_querystring', '')) {
if (isset($_GET[$param]) && $_GET[$param]) {
$_SESSION['uc_coupon'] = $_GET[$param];
}
}
}