I would like to see an install/update API enhancement
earnie - February 5, 2009 - 17:47
| Project: | Utility |
| Version: | 6.x-2.x-dev |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
I would like to be able to give an API call that would allow me to state a preference to when my module should run. I'm thinking something like utility_must_run_before('taxonomy') that I could include in my hook_install or hook_update_N modules.

#1
There is already module weighting provided. Sp are you asking more like "Set my weight higher or lower than ..."?
#2
Yes. I may have a module that needs to run before x_mod and after y_mod. It may even get so tricky that hook_x implementation needs to run before y_mod's hook_x implementation and hook_y may need to run after y_mod's hook_y. This tricky thing could be managed by separate modules within the package.
#3
Have you got a patch?
#4
Sorry, i made double post in wrong issue. Please ignore this comment completely.
Wont fix for Util.
http://drupal.org/project/js_theming already solves this task as well as other modules are available that do the same.
#5
No, I've not worked the coding. The need for this feature can be seen at #575694: Node used as front page should not appear separately in sitemap. It really probably should be included in core but ironing out the details and flaws in a module such as this one is good.
#6
Hmm, this is going to require more advice than I am capable of providing: I just worked up a drag-and-drop weight reordering. It definitely "works." The problem, however, is that not only changes the weights of modules that are dragged, it changes ALL module weights from 1 to however many modules you have. While this is probably effective, it is ugly (IMO).