You are here

function uc_coupon_workflow_user_insert in Ubercart Discount Coupons 7.3

Same name and namespace in other branches
  1. 7.2 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 71
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');
  }
}