You are here

function regcode_mailer_token_list in Registration codes 6

Same name and namespace in other branches
  1. 6.2 regcode_mailer/regcode_mailer.module \regcode_mailer_token_list()

Implements hook_token_list().

File

regcode_mailer/regcode_mailer.module, line 167

Code

function regcode_mailer_token_list($type = 'site') {

  // It only makes sense to provide this token when using the regcode mailer
  if (arg(2) === 'regcodes' && arg(3) === 'mail') {
    $tokens['user']['regcode'] = t("The next available registration code.");
    return $tokens;
  }
}