bootstrap_invoke_all

Versions
mediamosa-21
bootstrap_invoke_all($hook)

Call all init or exit hooks without including all modules.

Parameters

$hook The name of the bootstrap hook we wish to invoke.

▾ 2 functions call bootstrap_invoke_all()

_drupal_bootstrap_page_cache in includes/bootstrap.inc
Bootstrap page cache: Try to serve a page from cache.
_drupal_bootstrap_page_header in includes/bootstrap.inc
Bootstrap page header: Invoke hook_boot(), initialize locking system, and send default HTTP headers.

Code

includes/bootstrap.inc, line 869

<?php
function bootstrap_invoke_all($hook) {
  // _drupal_bootstrap_page_cache() already loaded the bootstrap modules, so we
  // don't need to tell module_list() to reset its bootstrap list.
  foreach (module_list(FALSE, TRUE) as $module) {
    drupal_load('module', $module);
    module_invoke($module, $hook);
  }
}
?>