You are here

function nagios_menu_site_status_alter in Nagios Monitoring 7

Implements hook_menu_site_status_alter().

Make the status page available when Drupal is in maintenance mode.

File

./nagios.module, line 77

Code

function nagios_menu_site_status_alter(&$menu_site_status, $path) {
  if ($menu_site_status == MENU_SITE_OFFLINE && $path == variable_get('nagios_page_path', 'nagios-status')) {
    $menu_site_status = MENU_SITE_ONLINE;
  }
}