Skip to content
Snippets Groups Projects
Commit 6d7099d2 authored by Jennifer Hodgdon's avatar Jennifer Hodgdon
Browse files

Issue #1606946 by Albert Volkman, udaksh: Document a couple of functions in update.php

parent d6ada284
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -264,6 +264,15 @@ function update_results_page() { ...@@ -264,6 +264,15 @@ function update_results_page() {
return $output; 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() { function update_info_page() {
// Change query-strings on css/js files to enforce reload for all users. // Change query-strings on css/js files to enforce reload for all users.
_drupal_flush_css_js(); _drupal_flush_css_js();
...@@ -289,6 +298,12 @@ function update_info_page() { ...@@ -289,6 +298,12 @@ function update_info_page() {
return $output; return $output;
} }
/**
* Renders a 403 access denied page for update.php.
*
* @return
* Rendered HTML warning with 403 status.
*/
function update_access_denied_page() { function update_access_denied_page() {
drupal_add_http_header('Status', '403 Forbidden'); drupal_add_http_header('Status', '403 Forbidden');
watchdog('access denied', 'update.php', array(), WATCHDOG_WARNING); watchdog('access denied', 'update.php', array(), WATCHDOG_WARNING);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment