function regcode_message in Registration codes 6
Same name and namespace in other branches
- 5.3 regcode_api.inc.php \regcode_message()
Return text message requested by given identifier/constant
Parameters
$code: The message code
Return value
The text of the message.
1 call to regcode_message()
- regcode_user in ./
regcode.module - Implementation of hook_user().
File
- ./
regcode.api.php, line 25 - A generic set of functions for interacting with and creating regcodes
Code
function regcode_message($code) {
$messages[REGCODE_VALIDITY_NOTEXISTING] = t('Registration code does not exist');
$messages[REGCODE_VALIDITY_NOTAVAILABLE] = t('Registration code is not available');
$messages[REGCODE_VALIDITY_TAKEN] = t('Registration code has already been used');
$messages[REGCODE_VALIDITY_EXPIRED] = t('Registration code has expired');
return $messages[$code];
}