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 modules/simpletest/tests/common_test.module
Implements hook_menu().

File

modules/simpletest/tests/common_test.module, line 275

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 '';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.