function auto_login_url_token_info in Auto Login URL 2.x
Same name and namespace in other branches
- 8 auto_login_url.module \auto_login_url_token_info()
- 7 auto_login_url.module \auto_login_url_token_info()
Implements hook_token_info().
File
- ./
auto_login_url.module, line 56 - Main file for auto_login_url module.
Code
function auto_login_url_token_info() {
// Add new tokens.
$info = [];
// Home token.
$info['tokens']['user']['auto-login-url-token'] = [
'name' => t('Auto Login URL'),
'description' => t('This an auto login token for the user.'),
];
// Link that goes to user edit page.
$info['tokens']['user']['auto-login-url-account-edit-token'] = [
'name' => t('Auto Login URL account edit'),
'description' => t('This an auto login for the user account page.'),
];
return $info;
}