function common_test_js_and_css_querystring

Adds a JavaScript file and a CSS file with a query string appended.

1 string reference to 'common_test_js_and_css_querystring'
common_test_menu in drupal/core/modules/system/tests/modules/common_test/common_test.module
Implements hook_menu().

File

drupal/core/modules/system/tests/modules/common_test/common_test.module, line 299
Helper module for the Common tests.

Code

function common_test_js_and_css_querystring() {
  drupal_add_library('system', 'drupalSettings');
  drupal_add_js(drupal_get_path('module', 'node') . '/node.js');
  drupal_add_css(drupal_get_path('module', 'node') . '/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');
  return '';
}