From fb804e29025eb170fa52c1907265144586a2022e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 10 Sep 2011 10:18:56 -0400 Subject: - Patch #565288 by bfroehle, anarcat, p.brouwers, aspilicious: cannot install Drupal when Drupal.org is 503 (at Drupalcon!). --- modules/update/tests/update_test.module | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'modules/update/tests') diff --git a/modules/update/tests/update_test.module b/modules/update/tests/update_test.module index 4e32d336a..4acb6ef83 100644 --- a/modules/update/tests/update_test.module +++ b/modules/update/tests/update_test.module @@ -12,6 +12,12 @@ function update_test_menu() { 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); + $items['503-error'] = array( + 'title' => t('503 Service unavailable'), + 'page callback' => 'update_callback_service_unavailable', + 'access callback' => TRUE, + 'type' => MENU_CALLBACK, + ); return $items; } @@ -148,3 +154,11 @@ class UpdateTestFileTransfer { return $form; } } + +/** + * Return an Error 503 (Service unavailable) page. + */ +function update_callback_service_unavailable() { + drupal_add_http_header('Status', '503 Service unavailable'); + print "503 Service Temporarily Unavailable"; +} -- cgit v1.2.3