function openid_test_menu_site_status_alter

7.x openid_test.module openid_test_menu_site_status_alter(&$menu_site_status, $path)

Implements hook_menu_site_status_alter().

File

drupal/modules/openid/tests/openid_test.module, line 82
Dummy OpenID Provider used with SimpleTest.

Code

function openid_test_menu_site_status_alter(&$menu_site_status, $path) {
  // Allow access to openid endpoint and identity even in offline mode.
  if ($menu_site_status == MENU_SITE_OFFLINE && user_is_anonymous() && in_array($path, array('openid-test/yadis/xrds', 'openid-test/endpoint'))) {
    $menu_site_status = MENU_SITE_ONLINE;
  }
}