function hook_regcode_validate in Registration codes 6.2
Same name and namespace in other branches
- 7 regcode.api.php \hook_regcode_validate()
Called when validating registration code use
1 invocation of hook_regcode_validate()
- regcode_user in ./
regcode.module - Implementation of hook_user().
File
- ./
regcode.api.php, line 24 - 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.'));
}
}