Skip to content
Snippets Groups Projects
Commit cc7e1532 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2102489 by InternetDevels: Remove drupal_set_title in views module controllers.

parent 1eb89f1a
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
......@@ -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;
}
......
......@@ -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));
......
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