From 6d7099d2a3c6d0011029d5563c94481bc834ee94 Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon <yahgrp@poplarware.com> Date: Tue, 27 Nov 2012 07:40:05 -0800 Subject: [PATCH] Issue #1606946 by Albert Volkman, udaksh: Document a couple of functions in update.php --- core/update.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core/update.php b/core/update.php index 5f88cb60e311..b65e90bb03b4 100644 --- a/core/update.php +++ b/core/update.php @@ -264,6 +264,15 @@ function update_results_page() { return $output; } +/** + * Provides an overview of the Drupal database update. + * + * This page provides cautionary suggestions that should happen before + * proceeding with the update to ensure data integrity. + * + * @return + * Rendered HTML form. + */ function update_info_page() { // Change query-strings on css/js files to enforce reload for all users. _drupal_flush_css_js(); @@ -289,6 +298,12 @@ function update_info_page() { return $output; } +/** + * Renders a 403 access denied page for update.php. + * + * @return + * Rendered HTML warning with 403 status. + */ function update_access_denied_page() { drupal_add_http_header('Status', '403 Forbidden'); watchdog('access denied', 'update.php', array(), WATCHDOG_WARNING); -- GitLab