function common_test_js_and_css_querystring in Drupal 7
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 modules/
simpletest/ tests/ common_test.module - Implements hook_menu().
File
- modules/
simpletest/ tests/ common_test.module, line 281 - Helper module for the Common tests.
Code
function common_test_js_and_css_querystring() {
drupal_add_js(drupal_get_path('module', 'node') . '/node.js');
drupal_add_css(drupal_get_path('module', 'node') . '/node.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 '';
}