drupal_site_offline

Definition

drupal_site_offline()
drupal/includes/common.inc, line 356

Description

Generates a site offline message.

Code

function drupal_site_offline() {
  drupal_maintenance_theme();
  drupal_set_header($_SERVER['SERVER_PROTOCOL'] . ' 503 Service unavailable');
  drupal_set_title(t('Site offline'));
  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'))))));
}