function uc_coupon_workflow_user_insert in Ubercart Discount Coupons 7.2
Same name and namespace in other branches
- 7.3 uc_coupon_workflow/uc_coupon_workflow.module \uc_coupon_workflow_user_insert()
Implements hook_user_insert().
If the creator of this user has suspended coupon workflow, then set the static variable accordingly.
File
- uc_coupon_workflow/
uc_coupon_workflow.module, line 79 - Discount coupon workflow.
Code
function uc_coupon_workflow_user_insert(&$edit, $account, $category) {
if (user_access('suspend coupon workflow') && isset($edit['uc_coupon_workflow_suspended']) && $edit['uc_coupon_workflow_suspended'] == TRUE) {
$var =& drupal_static('uc_coupon_workflow_suspended');
$var = TRUE;
}
else {
drupal_static_reset('uc_coupon_workflow_suspended');
}
}