function regcode_mailer_token_list in Registration codes 6.2
Same name and namespace in other branches
- 6 regcode_mailer/regcode_mailer.module \regcode_mailer_token_list()
Implements hook_token_list().
File
- regcode_mailer/
regcode_mailer.module, line 160
Code
function regcode_mailer_token_list($type = 'site') {
// It only makes sense to provide this token when using the regcode mailer
if (arg(2) === 'regcode') {
$tokens['user']['regcode'] = t('The next available registration code.');
return $tokens;
}
}