function simplesamlphp_auth_menu_site_status_alter in simpleSAMLphp Authentication 7.3
Implements hook_menu_site_status_alter().
File
- ./
simplesamlphp_auth.module, line 89 - simpleSAMLphp authentication module for Drupal.
Code
function simplesamlphp_auth_menu_site_status_alter(&$menu_site_status, $path) {
// Allow access to authenticate even if site is in offline mode.
$login_path = variable_get('simplesamlphp_auth_login_path', 'saml_login');
if ($menu_site_status == MENU_SITE_OFFLINE && user_is_anonymous() && $path == $login_path) {
$menu_site_status = MENU_SITE_ONLINE;
}
}