You are here

function _login_url_html in Shibboleth Authentication 6.4

Same name and namespace in other branches
  1. 7.4 shib_auth.module \_login_url_html()

Generate the login block content if user not logged in

2 calls to _login_url_html()
shib_auth_block in ./shib_auth.module
Generate the HTML text for the shib_auth login block
shib_auth_form_alter in ./shib_auth.module
Alters user_login form for the shibboleth authentication module.

File

./shib_auth.module, line 983
Drupal Shibboleth authentication module.

Code

function _login_url_html($is_account_linking = FALSE) {
  global $user;
  if (!$user->uid and $is_account_linking === FALSE) {
    return theme('shib_login_block', shib_auth_generate_login_url(), shib_auth_config('link_text'));
  }
  elseif ($user->uid > 1 and $is_account_linking and shib_auth_config('account_linking')) {
    return theme('shib_login_block', url('shib_link'), shib_auth_config('account_linking_text'));
  }
  return NULL;
}