You are here

function template_preprocess_lt_username_description in LoginToboggan 8

Implements hook_preprocess_() for theme function defined at hook_theme above.

Theme the username description of the user login form and the user login block.

File

./logintoboggan.module, line 383
LoginToboggan module.

Code

function template_preprocess_lt_username_description(&$variables) {
  switch ($variables['form_id']) {
    case 'user_login_form':

      // The username field's description when shown on the /user/login page.
      $variables['description'] = t('You may login with either your assigned username or your e-mail address.');
      break;
    case 'user_login_block':
      $variables['description'] = '';
      break;
  }
}