Set low module weight
mikey_p - August 12, 2009 - 23:24
| Project: | Autoload |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Ideally there is no reason that the autoload module shouldn't be one of the first, if not the first module to load on a site. I've made it a point to always set the weight to -100, so that it is available to other modules in hook_init, even if they come before autoload in the module list *cough*analytics*cough*.

#1
Seems to work okay here. I don't know if there are any other implications for this, but with things like DBTNG for D6 relying on this, things can get messy if classes don't work as soon as possible during bootstrap.
#2
I don't see how this can break anything. :-) Committed. Thanks!
#3
Automatically closed -- issue fixed for 2 weeks with no activity.