function bootstrap_invoke_all in Drupal 5
Same name and namespace in other branches
- 4 includes/bootstrap.inc \bootstrap_invoke_all()
- 6 includes/bootstrap.inc \bootstrap_invoke_all()
- 7 includes/bootstrap.inc \bootstrap_invoke_all()
Call all init or exit hooks without including all modules.
Parameters
$hook: The name of the bootstrap hook we wish to invoke.
1 call to bootstrap_invoke_all()
- _drupal_cache_init in includes/
bootstrap.inc - Initialize the caching strategy, which loads at different stages within Drupal's bootstrap process.
File
- includes/
bootstrap.inc, line 520 - Functions that need to be loaded on every Drupal request.
Code
function bootstrap_invoke_all($hook) {
foreach (module_list(TRUE, TRUE) as $module) {
drupal_load('module', $module);
module_invoke($module, $hook);
}
}