You are here

function hook_regcode_used in Registration codes 7

Same name and namespace in other branches
  1. 8 regcode.api.php \hook_regcode_used()
  2. 6.2 regcode.api.php \hook_regcode_used()
  3. 7.2 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_code_consume in ./regcode.module
Consume a regcode and attribute it to a user.

File

./regcode.api.php, line 11
Example hook functions for hooks provided by the core regcode module.

Code

function hook_regcode_used($code, $account) {
  if (is_object($code)) {
    drupal_set_message(t('Thanks %name, the code %code was used.', array(
      '%name' => $account->name,
      '%code' => $code['code'],
    )));
  }
}