function http_auth_cancel_page in HTTP Auth 7
Same name and namespace in other branches
- 8 http_auth.module \http_auth_cancel_page()
Returns the page to the unauthenticated user.
1 call to http_auth_cancel_page()
- http_auth_page_alter in ./
http_auth.module - Implements hook_page_alter().
File
- ./
http_auth.module, line 170 - Enables Drupal to add HTTP Auth from frontend on all over the site/pages.
Code
function http_auth_cancel_page($message = '') {
$sitename = variable_get('site_name');
if ($sitename == '') {
$sitename = "Locked";
}
return '<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>' . $sitename . ' | Restricted Site</title>
</head>
<body class="http-restricted">
<p>' . $message . '</p>
</body>
</html>';
}