function drupal_site_offline

7.x common.inc drupal_site_offline()
6.x common.inc drupal_site_offline()

Generates a site off-line message.

Related topics

1 call to drupal_site_offline()
index.php in drupal-6.x/index.php
The PHP page that serves all page requests on a Drupal installation.

File

drupal-6.x/includes/common.inc, line 364
Common functions that many Drupal modules will need to reference.

Code

function drupal_site_offline() {
  drupal_maintenance_theme();
  drupal_set_header($_SERVER['SERVER_PROTOCOL'] . ' 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', 'Drupal'))))));
}