You are here

function gauth_menu_site_status_alter in Google Auth 7

Same name and namespace in other branches
  1. 7.2 gauth.module \gauth_menu_site_status_alter()

Implements hook_menu_site_status_alter().

File

./gauth.module, line 146
Google Auth Api for drupal.

Code

function gauth_menu_site_status_alter(&$menu_site_status, $path) {
  if ($menu_site_status == MENU_SITE_OFFLINE && user_is_anonymous() && $path == 'gauth/response_handler') {

    // Disable offline mode.
    $menu_site_status = MENU_SITE_ONLINE;
  }
}