You are here

function template_preprocess_lt_username_title in LoginToboggan 8

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

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

File

./logintoboggan.module, line 356
LoginToboggan module.

Code

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

      // Label text for the username field on the /user/login page.
      $variables['label'] = 'Username or e-mail address';
      break;
    case 'user_login_block':

      // Label text for the username field when shown in a block.
      $variables['label'] = 'Username or e-mail';
      break;
  }
}