You are here

function drupal_site_offline in Drupal 4

Same name and namespace in other branches
  1. 5 includes/common.inc \drupal_site_offline()
  2. 6 includes/common.inc \drupal_site_offline()
  3. 7 includes/common.inc \drupal_site_offline()

Generates a site off-line message

1 call to drupal_site_offline()
index.php in ./index.php

File

includes/common.inc, line 275
Common functions that many Drupal modules will need to reference.

Code

function drupal_site_offline() {
  drupal_set_header('HTTP/1.0 503 Service unavailable');
  drupal_set_title(t('Site off-line'));
  print theme('maintenance_page', filter_xss_admin(variable_get('site_offline_message', t('%site is currently under maintenance. We should be back shortly. Thank you for your patience.', array(
    '%site' => variable_get('site_name', t('This Drupal site')),
  )))));
}