function hook_regcode_validate in Registration codes 7
Same name and namespace in other branches
- 6.2 regcode.api.php \hook_regcode_validate()
Called when validating registration code use.
File
- ./
regcode.api.php, line 23 - Example hook functions for hooks provided by the core regcode module.
Code
function hook_regcode_validate($edit, $account) {
if (empty($edit['loves_bacon'])) {
form_set_error('regcode_code', t("This just isn't working out between us."));
}
}