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
cc7e1532
Commit
cc7e1532
authored
11 years ago
by
Angie Byron
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2102489
by InternetDevels: Remove drupal_set_title in views module controllers.
parent
1eb89f1a
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
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/modules/views/includes/ajax.inc
+0
-6
0 additions, 6 deletions
core/modules/views/includes/ajax.inc
core/modules/views/lib/Drupal/views/Plugin/views/display/Page.php
+1
-1
1 addition, 1 deletion
...ules/views/lib/Drupal/views/Plugin/views/display/Page.php
with
1 addition
and
7 deletions
core/modules/views/includes/ajax.inc
+
0
−
6
View file @
cc7e1532
...
...
@@ -35,7 +35,6 @@ function views_ajax_form_wrapper($form_id, &$form_state) {
// These forms have the title built in, so set the title here:
if
(
empty
(
$form_state
[
'ajax'
])
&&
!
empty
(
$form_state
[
'title'
]))
{
drupal_set_title
(
$form_state
[
'title'
]);
drupal_add_css
(
drupal_get_path
(
'module'
,
'views_ui'
)
.
'/css/views_ui.admin.css'
);
}
...
...
@@ -66,11 +65,6 @@ function views_ajax_form_wrapper($form_id, &$form_state) {
return
$response
;
}
// These forms have the title built in, so set the title here:
if
(
empty
(
$form_state
[
'ajax'
])
&&
!
empty
(
$form_state
[
'title'
]))
{
drupal_set_title
(
$form_state
[
'title'
]);
}
return
$output
;
}
...
...
This diff is collapsed.
Click to expand it.
core/modules/views/lib/Drupal/views/Plugin/views/display/Page.php
+
1
−
1
View file @
cc7e1532
...
...
@@ -91,7 +91,7 @@ public function execute() {
// First execute the view so it's possible to get tokens for the title.
// And the title, which is much easier.
drupal_set_title
(
filter_xss_admin
(
$this
->
view
->
getTitle
())
,
PASS_THROUGH
)
;
$render
[
'#title'
]
=
filter_xss_admin
(
$this
->
view
->
getTitle
());
$response
=
$this
->
view
->
getResponse
();
$response
->
setContent
(
drupal_render_page
(
$render
));
...
...
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