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

kobnim’s picture

Version: 6.x-1.0 » 6.x-1.x-dev

When 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.

kenorb’s picture

Status: Active » Closed (duplicate)
kenorb’s picture

Issue summary: View changes

better formatting