You are here

function regcode_voucher_validate in Registration codes 6

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

Validate handler

File

regcode_voucher/regcode_voucher.module, line 185

Code

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

  // Simulate a user profile validate
  regcode_user('validate', $edit, $account, 'account');
}