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
addaf212
Commit
addaf212
authored
15 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#443518
by chx: remove stray whitespace.
parent
c7f7f632
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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
includes/theme.inc
+8
-8
8 additions, 8 deletions
includes/theme.inc
with
8 additions
and
8 deletions
includes/theme.inc
+
8
−
8
View file @
addaf212
...
@@ -1910,9 +1910,9 @@ function template_preprocess_page(&$variables) {
...
@@ -1910,9 +1910,9 @@ function template_preprocess_page(&$variables) {
$variables
[
'template_files'
]
=
$suggestions
;
$variables
[
'template_files'
]
=
$suggestions
;
foreach
(
$suggestions
as
$suggestion
)
{
foreach
(
$suggestions
as
$suggestion
)
{
if
(
$suggestion
!=
'page-front'
)
{
if
(
$suggestion
!=
'page-front'
)
{
// Add current suggestion to page classes to make it possible to theme the page
// Add current suggestion to page classes to make it possible to theme the page
// depending on the current page type (e.g. node, admin, user, etc.) as well as
// depending on the current page type (e.g. node, admin, user, etc.) as well as
// more specific data like node-12 or node-edit. To avoid illegal characters in
// more specific data like node-12 or node-edit. To avoid illegal characters in
// the class, we're removing everything disallowed. We are not using 'a-z' as
// the class, we're removing everything disallowed. We are not using 'a-z' as
// that might leave in certain international characters (e.g. German umlauts).
// that might leave in certain international characters (e.g. German umlauts).
$body_classes
[]
=
preg_replace
(
'![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s'
,
''
,
form_clean_id
(
drupal_strtolower
(
$suggestion
)));
$body_classes
[]
=
preg_replace
(
'![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s'
,
''
,
form_clean_id
(
drupal_strtolower
(
$suggestion
)));
...
@@ -1935,9 +1935,9 @@ function template_preprocess_page(&$variables) {
...
@@ -1935,9 +1935,9 @@ function template_preprocess_page(&$variables) {
*/
*/
function
template_page_suggestions
(
$args
)
{
function
template_page_suggestions
(
$args
)
{
// Build a list of suggested template files and body classes in order of
// Build a list of suggested template files and body classes in order of
// specificity. One suggestion is made for every element of the current path,
// specificity. One suggestion is made for every element of the current path,
// though numeric elements are not carried to subsequent suggestions. For
// though numeric elements are not carried to subsequent suggestions. For
// example, http://www.example.com/node/1/edit would result in the following
// example, http://www.example.com/node/1/edit would result in the following
// suggestions and body classes:
// suggestions and body classes:
//
//
...
@@ -1987,17 +1987,17 @@ function template_preprocess_node(&$variables) {
...
@@ -1987,17 +1987,17 @@ function template_preprocess_node(&$variables) {
$variables
[
'node_url'
]
=
url
(
'node/'
.
$node
->
nid
);
$variables
[
'node_url'
]
=
url
(
'node/'
.
$node
->
nid
);
$variables
[
'title'
]
=
check_plain
(
$node
->
title
);
$variables
[
'title'
]
=
check_plain
(
$node
->
title
);
$variables
[
'page'
]
=
(
bool
)
menu_get_object
();
$variables
[
'page'
]
=
(
bool
)
menu_get_object
();
if
(
$node
->
build_mode
==
NODE_BUILD_PREVIEW
)
{
if
(
$node
->
build_mode
==
NODE_BUILD_PREVIEW
)
{
unset
(
$node
->
content
[
'links'
]);
unset
(
$node
->
content
[
'links'
]);
}
}
// Render taxonomy links separately.
// Render taxonomy links separately.
$variables
[
'terms'
]
=
!
empty
(
$node
->
content
[
'links'
][
'terms'
])
?
drupal_render
(
$node
->
content
[
'links'
][
'terms'
])
:
''
;
$variables
[
'terms'
]
=
!
empty
(
$node
->
content
[
'links'
][
'terms'
])
?
drupal_render
(
$node
->
content
[
'links'
][
'terms'
])
:
''
;
// Render all remaining node links.
// Render all remaining node links.
$variables
[
'links'
]
=
!
empty
(
$node
->
content
[
'links'
])
?
drupal_render
(
$node
->
content
[
'links'
])
:
''
;
$variables
[
'links'
]
=
!
empty
(
$node
->
content
[
'links'
])
?
drupal_render
(
$node
->
content
[
'links'
])
:
''
;
// Render any comments.
// Render any comments.
$variables
[
'comments'
]
=
!
empty
(
$node
->
content
[
'comments'
])
?
drupal_render
(
$node
->
content
[
'comments'
])
:
''
;
$variables
[
'comments'
]
=
!
empty
(
$node
->
content
[
'comments'
])
?
drupal_render
(
$node
->
content
[
'comments'
])
:
''
;
...
...
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