function realname_registration_token_info in Realname registration 7.2
Same name and namespace in other branches
- 7 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['middle-name'] = array(
'name' => t('Middle name'),
'description' => t("The middle 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['middle-initial'] = array(
'name' => t('Middle inital'),
'description' => t("The middle 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,
),
);
}