function _login_url_html in Shibboleth Authentication 7.4
Same name and namespace in other branches
- 6.4 shib_auth.module \_login_url_html()
Generate the login block content if user not logged in.
Parameters
bool $is_account_linking: TRUE if account linking is active and FALSE if not.
2 calls to _login_url_html()
- shib_auth_block_view in ./
shib_auth.module - Implements hook_block_view().
- shib_auth_form_alter in ./
shib_auth.module - Alters user_login form for the shibboleth authentication module.
File
- ./
shib_auth.module, line 1187 - Drupal Shibboleth authentication module.
Code
function _login_url_html($is_account_linking = FALSE) {
global $user;
$output = '';
if (!user_is_logged_in() && $is_account_linking === FALSE) {
// TODO Please change this theme call to use an associative array for the
// $variables parameter.
$output = theme('shib_login_block', array(
'login_url' => shib_auth_generate_login_url(),
'login_text' => filter_xss(shib_auth_config('link_text')),
));
}
elseif ($user->uid > 1 && $is_account_linking && shib_auth_config('account_linking')) {
$output = theme('shib_login_block', array(
'login_url' => url('shib_link'),
'login_text' => filter_xss(shib_auth_config('account_linking_text')),
));
}
return $output;
}