You are here

function regcode_voucher_validate in Registration codes 6.2

Same name and namespace in other branches
  1. 6 regcode_voucher/regcode_voucher.module \regcode_voucher_validate()

Validate handler

File

regcode_voucher/regcode_voucher.module, line 208

Code

function regcode_voucher_validate($form, $form_state) {
  $edit = $form_state['values'];
  $account = $GLOBALS['user'];

  // Simulate a user profile validate
  if (module_exists('regcode_dynamic')) {
    regcode_dynamic_user('validate', $edit, $account, 'account');
  }
  regcode_user('validate', $edit, $account, 'account');
}