Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am using Drupal 6 and would like to change the order of the included javascript files. I am trying to use jslater.module to accomplish this.
However, when I implement hook_js_alter(), it seems to be having no effect at all on the included javascript files. Here for example is a test hook to set the querystring:
function mymodule_js_alter(&$js, $scope, &$querystring){
dsm ("inside mymodule_js_alter");
$querystring='123';
}
The hook gets called. But the querystring does not get set. Similarly, if I try to make changes to $js, the changes do not take.
Any idea what might be wrong?
Might these enabled modules be interfering with jsalter:
jquery_update
jquery_ui.
Comments
Comment #1
kobnim CreditAttribution: kobnim commentedWhen I filed the bug report a few minutes ago, I was using 6.x-1.0
I just tried using 6.x-1.x-dev, and I am having the same problem.
Comment #2
kenorb CreditAttribution: kenorb commented#2070475: Does not work with JQuery Update
Comment #2.0
kenorb CreditAttribution: kenorb commentedbetter formatting