function hook_regcode_used in Registration codes 6.2
Same name and namespace in other branches
- 8 regcode.api.php \hook_regcode_used()
- 7.2 regcode.api.php \hook_regcode_used()
- 7 regcode.api.php \hook_regcode_used()
Called when a registration code is used
2 functions implement hook_regcode_used()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- regcode_og_regcode_used in regcode_og/
regcode_og.module - Implements hook_regcode_used()
- regcode_roles_regcode_used in regcode_roles/
regcode_roles.module - Implements hook_regcode_used()
1 invocation of hook_regcode_used()
- regcode_use_helper in ./
regcode.module - Validate the use of a code, or use the code and attribute it to a user and call the hooks.
File
- ./
regcode.api.php, line 12 - Example hook functions for hooks provided by the core regcode module
Code
function hook_regcode_used(&$edit, &$account, &$code) {
if (is_object($code)) {
drupal_set_message(t('Thanks %name, the code %code was used.', array(
'%name' => $account->name,
'%code' => $edit['regcode_code'],
)));
}
}