Download & Extend

Allow other modules to alter the replacements

Project:jQuery Update
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

Attached patch adds a drupal alter call above the JS replacements, and also adds the path to the jquery_update_get_replacements function, so that modules can specify their own files, path and all.

AttachmentSize
jquery_update_alter.patch2.01 KB

Comments

#1

There is already an issue open on this :). I know, I opened it.

I'll review and work through this. Thanks.

#2

Version:6.x-1.1» 7.x-2.x-dev

Where's that issue, Matt?

#3

Subscribing.

#4

Marked #792798: Allow other modules to also preprocess JavaScript as a duplicate of this issue. And subscribing.

#5

subscribing...

#6

Status:needs review» postponed (maintainer needs more info)

With the existing core hooks of hook_library_alter() and hook_js_alter() do we need another method? In Drupal 6 this makes sense. But, for Drupal 7 is there anything we need to do?

#7

Version:7.x-2.x-dev» 6.x-2.x-dev
Status:postponed (maintainer needs more info)» needs review

Certainly not. Moving back to 6.x.

#8

#9

Hi, i'm experiencing problem while rewriting the JS in my theme page preprocess function. jqury_update module ignores my rewrites and restores previous list of JS files.

If this patch safe to use?
Can I apply it in my project?

Will it be pushed to module?

nobody click here