You are here

function menu_test_menu_site_status_alter in Drupal 7

Implements hook_menu_site_status_alter().

File

modules/simpletest/tests/menu_test.module, line 539
Dummy module implementing hook menu.

Code

function menu_test_menu_site_status_alter(&$menu_site_status, $path) {

  // Allow access to ?q=menu_login_callback even if in maintenance mode.
  if ($menu_site_status == MENU_SITE_OFFLINE && $path == 'menu_login_callback') {
    $menu_site_status = MENU_SITE_ONLINE;
  }
}