You are here

function realname_registration_token_info in Realname registration 7

Same name and namespace in other branches
  1. 7.2 realname_registration.tokens.inc \realname_registration_token_info()

Implements hook_token_info().

File

./realname_registration.tokens.inc, line 10
Token callbacks for the realname_registration module.

Code

function realname_registration_token_info() {
  $user['first-name'] = array(
    'name' => t('First name'),
    'description' => t("The first name of the user."),
  );
  $user['last-name'] = array(
    'name' => t('Last name'),
    'description' => t("The last name of the user."),
  );
  $user['first-initial'] = array(
    'name' => t('First inital'),
    'description' => t("The first initial of the user."),
  );
  $user['last-initial'] = array(
    'name' => t('Last initial'),
    'description' => t("The last initial of the user."),
  );
  return array(
    'tokens' => array(
      'user' => $user,
    ),
  );
}