diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-12-01 22:16:50 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-12-01 22:16:50 +0000 |
commit | 3cd9a1b2d48b0ad67d9a5a9569a6beb8939ec35a (patch) | |
tree | 23b4c2649ce717cb8f812f04495dde98cb9e3c2b /includes/module.inc | |
parent | aa1413d82ef197396dbafda17fbc1596fce856fc (diff) | |
download | brdo-3cd9a1b2d48b0ad67d9a5a9569a6beb8939ec35a.tar.gz brdo-3cd9a1b2d48b0ad67d9a5a9569a6beb8939ec35a.tar.bz2 |
- Patch #13405 by Moshe: make you actually do something useful with the init hook. A recent patch to 4.5 and HEAD made this patch run too early in the request (for non-cached pages).
Diffstat (limited to 'includes/module.inc')
-rw-r--r-- | includes/module.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/module.inc b/includes/module.inc index 8cfe216e3..d31222a98 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -7,6 +7,15 @@ */ /** + * Initialize all modules. + * + */ +function module_init() { + module_load_all(); + module_invoke_all('init'); +} + +/** * Call a function repeatedly with each module in turn as an argument. */ function module_iterate($function, $argument = '') { |