You are here

function realname_registration_token_list in Realname registration 6.2

Implementation of hook_token_info().

File

./realname_registration.module, line 534
For using real names during registration.

Code

function realname_registration_token_list($type = 'all') {
  if ($type == 'user' || $type == 'all') {
    $tokens['user']['first-name'] = t("The first name of the user.");
    $tokens['user']['middle-name'] = t("The middle name of the user.");
    $tokens['user']['last-name'] = t("The last name of the user.");
    $tokens['user']['first-initial'] = t("The first initial of the user.");
    $tokens['user']['middle-initial'] = t("The middle initial of the user.");
    $tokens['user']['last-initial'] = t("The last initial of the user.");
    $tokens['user']['first-name-raw'] = t("The first name of the user.");
    $tokens['user']['middle-name-raw'] = t("The middle name of the user.");
    $tokens['user']['last-name-raw'] = t("The last name of the user.");
    $tokens['user']['first-initial-raw'] = t("The first initial of the user.");
    $tokens['user']['middle-initial-raw'] = t("The middle initial of the user.");
    $tokens['user']['last-initial-raw'] = t("The last initial of the user.");
    return $tokens;
  }
}