Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
6d7099d2
Commit
6d7099d2
authored
12 years ago
by
Jennifer Hodgdon
Browse files
Options
Downloads
Patches
Plain Diff
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
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/update.php
+15
-0
15 additions, 0 deletions
core/update.php
with
15 additions
and
0 deletions
core/update.php
+
15
−
0
View file @
6d7099d2
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment