You are here

function hook_regcode_errormsg_alter in Registration codes 7.2

Change registration code error texts.

Parameters

$messages: Array with error messages.

1 invocation of hook_regcode_errormsg_alter()
regcode_errormsg in ./regcode.module
Return text message requested by given identifier/constant.

File

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

Code

function hook_regcode_errormsg_alter(&$messages) {
  $messages[REGCODE_VALIDITY_NOTEXISTING] = t('Invitation code is not valid');
}