You are here

function hook_regcode_presave in Registration codes 7

Same name and namespace in other branches
  1. 8 regcode.api.php \hook_regcode_presave()
  2. 7.2 regcode.api.php \hook_regcode_presave()

Called when a new registration code is created.

1 invocation of hook_regcode_presave()
regcode_save in ./regcode.module
Save given code to a record in the db and calls the regcode_presave hook.

File

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

Code

function hook_regcode_presave($code, &$terms = array()) {
  $term_string = implode(', ', $terms);
  drupal_set_message(t('The code: "%code" was created with the terms: "%terms!"', array(
    '%code' => $code,
    '%terms' => $term_string,
  )));
}