You are here

function theme_lt_login_link in LoginToboggan 5

Same name and namespace in other branches
  1. 6 logintoboggan.module \theme_lt_login_link()
  2. 7 logintoboggan.module \theme_lt_login_link()

Custom theme function for the login/register link.

2 theme calls to theme_lt_login_link()
logintoboggan_form_alter in ./logintoboggan.module
Implementation of hook_form_alter()
_logintoboggan_toggleboggan in ./logintoboggan.module
User login block with JavaScript to expand

File

./logintoboggan.module, line 1182
Logintoboggan Module

Code

function theme_lt_login_link() {

  // Only display register text if registration is allowed.
  if (variable_get('user_register', 1)) {
    return t('Login/Register');
  }
  else {
    return t('Login');
  }
}