1 common.inc backdrop_site_offline()

Delivers a "site is under maintenance" message to the browser.

Page callback functions wanting to report a "site offline" message should return MENU_SITE_OFFLINE instead of calling backdrop_site_offline(). However, functions that are invoked in contexts where that return value might not bubble up to menu_execute_active_handler() should call backdrop_site_offline().

Related topics

File

core/includes/common.inc, line 884
Common functions that many Backdrop modules will need to reference.

Code

function backdrop_site_offline() {
  backdrop_deliver_page(MENU_SITE_OFFLINE);
}