You are here

function theme_lt_login_link in LoginToboggan 6

Same name and namespace in other branches
  1. 5 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 1405
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');
  }
}