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