Skip to content
Snippets Groups Projects
Commit 0eb6d083 authored by catch's avatar catch
Browse files

Issue #2096593 by Wim Leers: Remove drupal_add_css() from system.module.

parent 2e928d56
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
...@@ -82,11 +82,19 @@ public function drupalRenderInvalidKeys() { ...@@ -82,11 +82,19 @@ public function drupalRenderInvalidKeys() {
* An empty string. * An empty string.
*/ */
public function jsAndCssQuerystring() { public function jsAndCssQuerystring() {
drupal_add_library('system', 'drupalSettings'); $attached = array(
drupal_add_js(drupal_get_path('module', 'node') . '/node.js'); '#attached' => array(
drupal_add_css(drupal_get_path('module', 'node') . '/css/node.admin.css'); 'library' => array(
// A relative URI may have a query string. array('node', 'drupal.node'),
drupal_add_css('/' . drupal_get_path('module', 'node') . '/node-fake.css?arg1=value1&arg2=value2'); ),
'css' => array(
drupal_get_path('module', 'node') . '/css/node.admin.css' => array(),
// A relative URI may have a query string.
'/' . drupal_get_path('module', 'node') . '/node-fake.css?arg1=value1&arg2=value2' => array(),
),
),
);
drupal_render($attached);
return ''; return '';
} }
......
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