function bootstrap_invoke_all

Invokes a bootstrap hook in all bootstrap modules that implement it.

Parameters

$hook: The name of the bootstrap hook to invoke.

See also

bootstrap_hooks()

File

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

Code

function bootstrap_invoke_all($hook) {
  $module_handler = Drupal::moduleHandler();
  foreach ($module_handler
    ->getBootstrapModules() as $module) {
    $module_handler
      ->load($module);
    module_invoke($module, $hook);
  }
}