You are here

function bootstrap_invoke_all in Drupal 4

Same name and namespace in other branches
  1. 5 includes/bootstrap.inc \bootstrap_invoke_all()
  2. 6 includes/bootstrap.inc \bootstrap_invoke_all()
  3. 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_page_header in includes/bootstrap.inc
Set HTTP headers in preparation for a page response.

File

includes/bootstrap.inc, line 463
Functions that need to be loaded on every Drupal request.

Code

function bootstrap_invoke_all($hook) {
  foreach (module_list(FALSE, TRUE) as $module) {
    drupal_load('module', $module);
    module_invoke($module, $hook);
  }
}