function theme_lt_username_description in LoginToboggan 5
Same name and namespace in other branches
- 6 logintoboggan.module \theme_lt_username_description()
- 7 logintoboggan.module \theme_lt_username_description()
Theme the username description of the user login form and the user login block.
1 theme call to theme_lt_username_description()
- logintoboggan_form_alter in ./
logintoboggan.module - Implementation of hook_form_alter()
File
- ./
logintoboggan.module, line 1118 - Logintoboggan Module
Code
function theme_lt_username_description($form_id) {
switch ($form_id) {
case 'user_login':
if (variable_get('drupal_authentication_service', FALSE) && count(user_auth_help_links()) > 0) {
// If drupal_authentication_service is enabled, this is
// the username field's description when shown on the /user/login page.
return t('Enter your %s username, e-mail address, or an ID from one of our affiliates: !a.', array(
'%s' => variable_get('site_name', 'local'),
'!a' => implode(', ', user_auth_help_links()),
));
}
else {
// The username field's description when shown on the /user/login page.
return t('You may login with either your assigned username or your e-mail address.');
}
break;
case 'user_login_block':
return t('');
break;
}
}