You are here

function health_check_menu_site_status_alter in Health check 7

Implements hook_menu_site_status_alter().

File

./health_check.module, line 22
Contains Health check module.

Code

function health_check_menu_site_status_alter(&$menu_site_status, $path) {

  // Allow access to health check even if site is in offline mode.
  if ($menu_site_status == MENU_SITE_OFFLINE && $path == 'health') {
    $menu_site_status = MENU_SITE_ONLINE;
  }
}